From d986cd307bd8e85d96624cd53828854e1bad20ae Mon Sep 17 00:00:00 2001 From: Silvan Jegen Date: Tue, 6 Sep 2016 21:26:43 +0200 Subject: Add the yxml library test program --- yxml.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 yxml.c (limited to 'yxml.c') diff --git a/yxml.c b/yxml.c new file mode 100644 index 0000000..f575a8d --- /dev/null +++ b/yxml.c @@ -0,0 +1,23 @@ +#include +#include + +#include "yxmllib.h" + +#define BUFSIZE 8096 + +int process(char *fn, yxml_t *state) { + yxml_init(state, state+1, BUFSIZE); + + return 0; +} + +int main(int argc, char *argv[]) { + yxml_t *state = malloc(sizeof(yxml_t) + BUFSIZE); + + for (int i = 1; i < argc; i++) { + process(argv[i], state); + } + + return 0; +} + -- cgit v1.2.1-18-gbd029