Main Page   Compound List   File List   Compound Members   File Members  

lib/gobj/memory.h File Reference

Memory management routines. More...

#include <gobjconfig.h>

Functions

void* Gj_alloc (int size)
 Allocate a memory block.

void Gj_free (void* ptr)
 Free a memory block allocated by Gj_alloc. More...

void* Gj_realloc (void* ptr, int size)
 Re-allocate a memory block.

char* Gj_strdup (char* str)
 Strdup via Gj_alloc. More...

int Gj_memory_getAllocatedBlocks ()
 Return the count of allocated blocks. More...


Detailed Description

Memory management routines.


Function Documentation

void Gj_free ( void * ptr )
 

Free a memory block allocated by Gj_alloc.

Null pointers as arguments are allowed.

char * Gj_strdup ( char * str )
 

Strdup via Gj_alloc.

Null pointers as arguments are allowed.

int Gj_memory_getAllocatedBlocks ( )
 

Return the count of allocated blocks.

Should be 0 at the beginning and at the end of the program.


Generated at Fri Aug 17 18:28:57 2001 for Gobj by doxygen1.2.1 written by Dimitri van Heesch, © 1997-2000