mirror of
https://github.com/labwc/labwc.git
synced 2025-10-29 05:40:24 -04:00
23 lines
381 B
C
23 lines
381 B
C
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <unistd.h>
|
|
|
|
#include "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 <rc.xml file>\n", argv[0]);
|
|
exit(EXIT_FAILURE);
|
|
}
|
|
buf_init(&b);
|
|
rcxml_get_nodenames(&b);
|
|
rcxml_read(argv[1]);
|
|
printf("%s", b.buf);
|
|
free(b.buf);
|
|
}
|