#include <stdio.h>
#include <string.h>
#include "yajl/yajl_tree.h"
static unsigned char fileData[65536];
int
main(void)
{
size_t rd;
char errbuf[1024];
fileData[0] = errbuf[0] = 0;
rd = fread((void *) fileData, 1, sizeof(fileData) - 1, stdin);
if (rd == 0 && !feof(stdin)) {
fprintf(stderr, "error encountered on file read\n");
return 1;
} else if (rd >= sizeof(fileData) - 1) {
fprintf(stderr, "config file too big\n");
return 1;
}
if (node == NULL) {
fprintf(stderr, "parse_error: ");
if (strlen(errbuf)) fprintf(stderr, " %s", errbuf);
else fprintf(stderr, "unknown error");
fprintf(stderr, "\n");
return 1;
}
{
const char * path[] = { "Logging", "timeFormat", (const char *) 0 };
else printf("no such node: %s/%s\n", path[0], path[1]);
}
return 0;
}