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

wbxml_mem.h File Reference

Memory Functions. More...

#include <stdlib.h>

Include dependency graph for wbxml_mem.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Defines

#define wbxml_mem_cleam(ptr)   (ptr)

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.


Detailed Description

Memory Functions.

Author:
Aymerick Jéhanne <libwbxml@jehanne.org>
Date:
02/07/01

Definition in file wbxml_mem.h.


Define Documentation

#define wbxml_mem_cleam ptr       (ptr)
 

Definition at line 45 of file wbxml_mem.h.


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:45 2003 for WBXML Library by doxygen1.3-rc1