mirror of
https://github.com/troydhanson/tpl.git
synced 2024-12-26 23:57:25 +08:00
15 lines
265 B
C
15 lines
265 B
C
|
#include <stdio.h>
|
||
|
#include <stdlib.h>
|
||
|
#include "tpl.h"
|
||
|
|
||
|
int main() {
|
||
|
char *fmt, c;
|
||
|
fmt = tpl_peek(TPL_FILE|TPL_DATAPEEK, "test99.tpl", "c", &c);
|
||
|
if (fmt) {
|
||
|
printf("%s\n",fmt);
|
||
|
free(fmt);
|
||
|
printf("%c\n", c);
|
||
|
}
|
||
|
return 0;
|
||
|
}
|