mirror of
https://github.com/troydhanson/tpl.git
synced 2025-01-14 00:27:56 +08:00
19 lines
306 B
C
19 lines
306 B
C
|
#include "tpl.h"
|
||
|
|
||
|
int main() {
|
||
|
tpl_node *tn;
|
||
|
char *s;
|
||
|
|
||
|
tn = tpl_map( "A(s)", &s );
|
||
|
|
||
|
s = "bob";
|
||
|
tpl_pack(tn, 1);
|
||
|
|
||
|
s = "betty";
|
||
|
tpl_pack(tn, 1);
|
||
|
|
||
|
tpl_dump(tn, TPL_FILE, "/tmp/test49.tpl");
|
||
|
tpl_free(tn);
|
||
|
return(0);
|
||
|
}
|