Main Page   Modules   Compound List   File List   Compound Members   File Members  

allocate.h File Reference

#include <stdlib.h>
#include <gandalf/common/misc_defs.h>

Go to the source code of this file.

Defines

#define obj_type   int x

Typedefs

typedef void(* Gan_FreeFunc )(void *)
 Generic free function type.


Functions

void * gan_malloc_object (TYPE obj_type)
 Macro: Allocate an object of a specific type using malloc().

void * gan_malloc_array (TYPE obj_type, unsigned size)
 Macro: Allocate an array of objects of a specific type using malloc().

void * gan_realloc_array (TYPE obj_type, void *ptr, unsigned size)
 Macro: Reallocate an array of objects using realloc().

void gan_free_va (void *ptr,...)
 Frees a NULL-terminated variable argument list of memory blocks.


Detailed Description

Module: Memory allocation module

Part of: Gandalf Library

Revision: Last edited: Author:

Copyright: (c) 2000 Imagineer Software Limited


Function Documentation

void gan_free_va void *    ptr,
...   
 

Frees a NULL-terminated variable argument list of memory blocks.

Parameters:
ptr The first memory block to free
... List of other blocks to free, terminated by NULL
Returns:
No value.
Invokes free() to free each memory block in the list of pointers starting with ptr and ending with NULL .

See also:
gan_malloc_object(), gan_malloc_array().


Generated on Mon Oct 13 16:14:40 2003 by doxygen1.3-rc1