]> git.ozlabs.org Git - ccan/blob - ccan/ttxml/_info
opt: add allocator setting.
[ccan] / ccan / ttxml / _info
1 #include <string.h>
2 #include "config.h"
3
4 /**
5  * ttxml - tiny XML library for parsing (trusted!) XML documents.
6  *
7  * This parses an XML file into a convenient data structure.
8  *
9  * Example:
10  * #include <ccan/ttxml/ttxml.h>
11  * #include <stdio.h>
12  *
13  * int main(int argc, char *argv[])
14  * {
15  *      XmlNode *xml, *tmp;
16  *
17  *      xml = xml_load("./test/test.xml2");
18  *      if(!xml)return 1;
19  *
20  *      tmp = xml_find(xml, "childnode");
21  *
22  *      printf("%s: %s\n", xml->name, xml_attr(tmp, "attribute"));
23  *
24  *      xml_free(xml);
25  *
26  *      return 0;
27  * }
28  *
29  * License: GPL
30  * Author: Daniel Burke <dan.p.burke@gmail.com>
31  */
32 int main(int argc, char *argv[])
33 {
34         /* Expect exactly one argument */
35         if (argc != 2)
36                 return 1;
37
38         if (strcmp(argv[1], "depends") == 0) {
39                 return 0;
40         }
41
42         return 1;
43 }