Add tools/rcxml/rcxml-print-nodenames.c

This commit is contained in:
Johan Malm 2020-06-08 19:53:12 +01:00
parent 898d80e04f
commit 91ce33dd0d
4 changed files with 41 additions and 0 deletions

View file

@ -0,0 +1,18 @@
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include "rcxml.h"
struct rcxml rc = { 0 };
int main(int argc, char **argv)
{
if (argc != 2) {
fprintf(stderr, "usage: %s <rc.xml file>\n", argv[0]);
exit(EXIT_FAILURE);
}
rcxml_init(&rc);
rcxml_set_verbose();
rcxml_read(argv[1]);
}