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, "/tmp/test47.tpl" ); 10 while (tpl_unpack( tn, 1 ) > 0) { 11 printf("%d ", i); 12 } 13 tpl_free( tn ); 14 return(0); 15 } 16