libopc
Functions
opc.h File Reference
#include <opc/config.h>
#include <opc/container.h>
#include <opc/part.h>
#include <opc/relation.h>
#include <opc/inputstream.h>
#include <opc/outputstream.h>
#include <opc/zip.h>
#include <opc/xmlreader.h>
#include <opc/xmlwriter.h>
#include <opc/properties.h>

Go to the source code of this file.

Functions

opc_error_t opcInitLibrary ()
 
opc_error_t opcFreeLibrary ()
 

Detailed Description

The opc module contains the basic library functions.

Function Documentation

opc_error_t opcFreeLibrary ( )
opc_error_t opcInitLibrary ( )

Initialize libopc. Sample:

/*
Simple demonstration program of how to initialize the library.
Ussage:
opc_helloworld
Sample:
opc_helloworld
*/
#include <opc/opc.h>
#include <stdio.h>
#ifdef WIN32
#include <crtdbg.h>
#endif
int main( int argc, const char* argv[] )
{
#ifdef WIN32
_CrtSetDbgFlag (_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF);
#endif
if (OPC_ERROR_NONE==opcInitLibrary()) {
printf("libopc as well as zlib and libxml2 are ready to use.\n");
#ifdef WIN32
OPC_ASSERT(!_CrtDumpMemoryLeaks());
#endif
return 0;
} else {
printf("error initializing libopc.\n ");
return 1;
}
}
Returns
Non-zero if successful.
Examples:
mce_write.c, opc_dump.c, opc_extract.c, opc_generate.c, opc_helloworld.c, opc_image.c, opc_mem.c, opc_part.c, opc_relation.c, opc_text.c, opc_trim.c, opc_type.c, opc_xml.c, opc_xml2.c, opc_zipextract.c, opc_zipread.c, and opc_zipwrite.c.