1 #include <stdio.h>
2 #include "tpl.h"
3 
4 extern tpl_hook_t tpl_hook;
5 
main()6 int main() {
7     tpl_node *tn;
8     int i, rc;
9 
10     tpl_hook.oops = printf;
11 
12     tn = tpl_map("A(i)",&i);
13     rc = tpl_load(tn,TPL_FILE,"test39.tpl");
14     printf("load %s (rc=%d)\n", (rc >= 0 ? "ok" : "failed"), rc);
15     tpl_free(tn);
16     return(0);
17 }
18