tpl/tests/test35.c

17 lines
345 B
C
Raw Normal View History

2013-03-12 16:38:58 -04:00
#include "tpl.h"
int main(int argc, char *argv[]) {
tpl_node *tn;
int id;
2018-09-05 09:49:11 +08:00
char *name, *names[] = { "joe", "bob", "cary", NULL };
2013-03-12 16:38:58 -04:00
tn = tpl_map("A(is)", &id, &name);
for(id=0,name=names[id]; id < 3; name=names[++id])
tpl_pack(tn,1);
tpl_dump(tn, TPL_FILE, "/tmp/test35.tpl");
tpl_free(tn);
return(0);
}