#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. |
Part of: Gandalf Library
Revision: Last edited: Author:
Copyright: (c) 2000 Imagineer Software Limited
|
Frees a
free() to free each memory block in the list of pointers starting with ptr and ending with NULL .
|