Daniel Veillard | a737459 | 2001-05-10 14:17:55 +0000 | [diff] [blame] | 1 | /* |
| 2 | * testCatalog.c : a small tester program for Catalog loading |
| 3 | * |
| 4 | * See Copyright for the status of this software. |
| 5 | * |
| 6 | * Daniel.Veillard@w3.org |
| 7 | */ |
| 8 | |
| 9 | #include "libxml.h" |
| 10 | |
| 11 | #include <string.h> |
| 12 | #include <stdio.h> |
| 13 | #include <stdarg.h> |
| 14 | |
| 15 | #include <libxml/xmlversion.h> |
| 16 | #include <libxml/xmlmemory.h> |
| 17 | #include <libxml/uri.h> |
| 18 | #include <libxml/catalog.h> |
| 19 | |
| 20 | int main(int argc, char **argv) { |
| 21 | #ifdef LIBXML_CATALOG_ENABLED |
| 22 | int i; |
| 23 | |
| 24 | for (i = 1; i < argc; i++) |
| 25 | xmlLoadCatalog(argv[i]); |
| 26 | |
| 27 | xmlCatalogDump(stdout); |
| 28 | xmlCatalogCleanup(); |
| 29 | xmlMemoryDump(); |
| 30 | #endif |
| 31 | return(0); |
| 32 | } |