diff options
Diffstat (limited to 'yxml.c')
-rw-r--r-- | yxml.c | 23 |
1 files changed, 23 insertions, 0 deletions
@@ -0,0 +1,23 @@ +#include <stdio.h> +#include <stdlib.h> + +#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; +} + |