1 #include "tpl.h" 2 #include <stdio.h> 3 main()4int main() { 5 char c; 6 tpl_node *tn; 7 8 tn = tpl_map("A(A(c))", &c); 9 10 tpl_load(tn, TPL_FILE, "/tmp/test40.tpl"); 11 while (tpl_unpack(tn,1) > 0) { 12 while (tpl_unpack(tn,2) > 0) printf("%c ",c); 13 printf("\n"); 14 } 15 tpl_free(tn); 16 return(0); 17 } 18 19