Main Page   Compound List   File List   Compound Members   File Members  

lib/memory.c File Reference

Memory management routines. More...

#include "gobj/memory.h"
#include "gobj/lang.h"
#include "gobj/errormgr.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <memwatch.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...


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.


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