Functions | |
void | cpl_end (void) |
Stop the internal subsystems of CPL. | |
const char * | cpl_get_description (unsigned self) |
Create a string of version numbers of CPL and its libraries. | |
void | cpl_init (unsigned self) |
Initialise the CPL core library. |
#include <cpl_init.h>
void cpl_end | ( | void | ) |
Stop the internal subsystems of CPL.
const char* cpl_get_description | ( | unsigned | self | ) |
Create a string of version numbers of CPL and its libraries.
self | CPL_DESCRIPTION_DEFAULT |
void cpl_init | ( | unsigned | self | ) |
Initialise the CPL core library.
self | CPL_INIT_DEFAULT is the only supported value |
One of the internal subsystems of CPL handles memory allocation. The default CPL memory mode is defined during the build procedure, this default can be changed during the call to cpl_init() via the environment variable CPL_MEMORY_MODE. The valid values are 0: Use the default system functions for memory handling 1: Exit if a memory-allocation fails, provide checking for memory leaks, limited reporting of memory allocation and limited protection on deallocation of invalid pointers. 2: Exit if a memory-allocation fails, provide checking for memory leaks, extended reporting of memory allocation and protection on deallocation of invalid pointers. Any other value (including NULL) will leave the default memory mode unchanged.
Possible _cpl_error_code_ set in this function: