1 #include "tpl.h"
2 
main(int argc,char * argv[])3 int main(int argc, char *argv[]) {
4     tpl_node *tn;
5     char id;
6     tpl_bin bin;
7 
8     char *junk = "0123456789";
9     bin.sz = 10;
10     bin.addr = junk;
11 
12     tn = tpl_map("A(cB)", &id, &bin);
13 
14     for(id=0; id < 3; ++id)
15         tpl_pack(tn,1);  /* pack same bin buffer, doesn't matter */
16 
17     tpl_dump(tn, TPL_FILE, "/tmp/test43.tpl");
18     tpl_free(tn);
19     return(0);
20 }
21