Main Page   Modules   Compound List   File List   Compound Members   File Members   Related Pages  

WBXML Memory Wrapper
[WBXML Library]


Files

file  wbxml_mem.c
 Memory Functions.

file  wbxml_mem.h
 Memory Functions.


Functions

void * wbxml_malloc (size_t size)
 Alloc a Memory Block.

void wbxml_free (void *memblock)
 Free a Memory Block.

void * wbxml_realloc (void *memblock, size_t size)
 Realloc a Memory Block.

char * wbxml_strdup (const char *str)
 Duplicate a C String.


Function Documentation

void wbxml_free void *    memblock
 

Free a Memory Block.

Parameters:
memblock The Memory Block to free

Definition at line 52 of file wbxml_mem.c.

Referenced by main(), wbxml_attribute_destroy(), wbxml_attribute_name_destroy(), wbxml_attribute_name_duplicate(), wbxml_buffer_create_real(), wbxml_buffer_destroy(), wbxml_encoder_create_real(), wbxml_encoder_destroy(), wbxml_list_destroy(), wbxml_parser_destroy(), wbxml_tag_destroy(), wbxml_tag_duplicate(), wbxml_tree_attribute_destroy(), wbxml_tree_destroy(), and wbxml_tree_node_destroy().

void* wbxml_malloc size_t    size
 

Alloc a Memory Block.

Parameters:
size Size of Memory to alloc
Returns:
The newly mlloced Memory Block, or NULL if not enought memory

Definition at line 42 of file wbxml_mem.c.

Referenced by wbxml_attribute_create(), wbxml_attribute_duplicate(), wbxml_attribute_name_create(), wbxml_attribute_name_duplicate(), wbxml_base64_decode(), wbxml_base64_encode(), wbxml_buffer_create_real(), wbxml_encoder_create_real(), wbxml_list_create_real(), wbxml_parser_create(), wbxml_tag_create(), wbxml_tag_duplicate(), wbxml_tree_attribute_create(), wbxml_tree_create(), and wbxml_tree_node_create().

void* wbxml_realloc void *    memblock,
size_t    size
 

Realloc a Memory Block.

Parameters:
memblock The Memory Block to realloc
size Size of Memory to realloc
Returns:
The newly realloced Memory Block, or NULL if not enought memory

Definition at line 62 of file wbxml_mem.c.

Referenced by main().

char* wbxml_strdup const char *    str
 

Duplicate a C String.

Parameters:
str The C String to duplicate
Returns:
The newly duplicated C String, or NULL if not enought memory

Definition at line 72 of file wbxml_mem.c.


Generated on Mon Nov 24 20:09:48 2003 for WBXML Library by doxygen1.3-rc1