1 #include <stdio.h> 2 #include "tpl.h" 3 main()4 int main() { 5 tpl_node *tn; 6 int i; 7 8 tn = tpl_map("A(i)",&i); 9 tpl_load(tn,TPL_FILE,"test10.tpl"); 10 while (tpl_unpack(tn,1) > 0) printf("i is %d\n", i); 11 tpl_free(tn); 12 return(0); 13 } 14