| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- #include <string.h>
- #include "config.h"
- /**
- * ttxml - tiny XML library for parsing (trusted!) XML documents.
- *
- * This parses an XML file into a convenient data structure.
- *
- * Example:
- * #include <ccan/ttxml/ttxml.h>
- * #include <stdio.h>
- *
- * int main(int argc, char *argv[])
- * {
- * XmlNode *xml, *tmp;
- *
- * xml = xml_load("./test/test.xml2");
- * if(!xml)return 1;
- *
- * tmp = xml_find(xml, "childnode");
- *
- * printf("%s: %s\n", xml->name, xml_attr(tmp, "attribute"));
- *
- * xml_free(xml);
- *
- * return 0;
- * }
- *
- * License: GPL
- * Author: Daniel Burke <dan.p.burke@gmail.com>
- */
- int main(int argc, char *argv[])
- {
- /* Expect exactly one argument */
- if (argc != 2)
- return 1;
- if (strcmp(argv[1], "depends") == 0) {
- return 0;
- }
- return 1;
- }
|