#include #include #include #include "config/rcxml.h" #include "common/buf.h" struct rcxml rc = { 0 }; int main(int argc, char **argv) { struct buf b; if (argc != 2) { fprintf(stderr, "usage: %s \n", argv[0]); exit(EXIT_FAILURE); } buf_init(&b); rcxml_get_nodenames(&b); rcxml_read(argv[1]); printf("%s", b.buf); free(b.buf); }