| Gnome XML Library Reference Manual |
|---|
#define NO_DEBUG_MEMORY void xmlFree (void *ptr); void* xmlMalloc (int size); void* xmlRealloc (void *ptr, int size); char* xmlMemStrdup (const char *str); int xmlInitMemory (void); int xmlMemUsed (void); void xmlMemoryDump (void); void xmlMemDisplay (FILE *fp); void xmlMemShow (FILE *fp, int nr); #define DEBUG_MEMORY_LOCATION #define DEBUG_MEMORY #define MEM_LIST void* xmlMallocLoc (int size, const char *file, int line); void* xmlReallocLoc (void *ptr, int size, const char *file, int line); char* xmlMemStrdupLoc (const char *str, const char *file, int line);
void xmlFree (void *ptr);
a
| ptr : | the memory block pointer |
void* xmlMalloc (int size);
a
| size : | an int specifying the size in byte to allocate. |
void* xmlRealloc (void *ptr,
int size);a
| ptr : | the initial memory block pointer |
| size : | an int specifying the size in byte to allocate. |
char* xmlMemStrdup (const char *str);
a
| str : | |
| Returns : | a pointer to the new string or NULL if allocation error occured. |
int xmlMemUsed (void);
returns the amount of memory currenly allocated
| Returns : | an int representing the amount of memory allocated. |
void xmlMemoryDump (void);
Dump in-extenso the memory blocks allocated to the file .memorylist
void xmlMemDisplay (FILE *fp);
show in-extenso the memory blocks allocated
| fp : | a FILE descriptor used as the output file, if NULL, the result is written to the file .memorylist |
void xmlMemShow (FILE *fp, int nr);
show a show display of the memory allocated, and dump the nr last allocated areas which were not freed
| fp : | a FILE descriptor used as the output file |
| nr : | number of entries to dump |
void* xmlMallocLoc (int size,
const char *file,
int line);a
| size : | an int specifying the size in byte to allocate. |
| file : | the file name or NULL |
| line : |
|
void* xmlReallocLoc (void *ptr,
int size,
const char *file,
int line);a
| ptr : | the initial memory block pointer |
| size : | an int specifying the size in byte to allocate. |
| file : | the file name or NULL |
| line : |
|
| <<< debugXML |