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