mirror of
https://github.com/labwc/labwc.git
synced 2026-02-26 01:40:22 -05:00
Add tools/rcxml/rcxml-print-nodenames.c
This commit is contained in:
parent
898d80e04f
commit
91ce33dd0d
4 changed files with 41 additions and 0 deletions
18
tools/rcxml/rcxml-print-nodenames.c
Normal file
18
tools/rcxml/rcxml-print-nodenames.c
Normal 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]);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue