Edit

kc3-lang/libxml2/testCatalog.c

Branch :

  • Show log

    Commit

  • Author : Daniel Veillard
    Date : 2001-05-10 14:17:55
    Hash : a737459b
    Message : - Makefile.am xmlversion.h.in configure.in include/Makefile.am: integrating catalogs - catalog.[ch] testCatalog.c: adding a small catalo API (only SGML catalog support). - parser.c: restaured xmlKeepBlanksDefault(0) API Daniel

  • testCatalog.c
  • /*
     * testCatalog.c : a small tester program for Catalog loading
     *
     * See Copyright for the status of this software.
     *
     * Daniel.Veillard@w3.org
     */
    
    #include "libxml.h"
    
    #include <string.h>
    #include <stdio.h>
    #include <stdarg.h>
    
    #include <libxml/xmlversion.h>
    #include <libxml/xmlmemory.h>
    #include <libxml/uri.h>
    #include <libxml/catalog.h>
    
    int main(int argc, char **argv) {
    #ifdef LIBXML_CATALOG_ENABLED
        int i;
    
        for (i = 1; i < argc; i++)
    	xmlLoadCatalog(argv[i]);
    
        xmlCatalogDump(stdout);
        xmlCatalogCleanup();
        xmlMemoryDump();
    #endif
        return(0);
    }