NAME

catgen_init - initialize SDK

SYNOPSIS

#include <cat/gen.h>

int catgen_init(void);

DESCRIPTION

This function will initialize the base cat library by calling cat_init(), the information structure by calling catgen_initinfo() and the catgen tracing facilities with catgen_initdebug().

This function should be called before any other cat_ function calls or one will have to do the initialization by hand (as described above). However, there is an exception to this rule. The argument parsing functions (catgen_parseargs() or cat_getopt(), can (and should) be called before a call to this function.

The function returns 0 if successful, or a negative code on error.

SEE ALSO

cat, catgen

cat_init, catgen_initinfo, catgen_initdebug