Main Page | Modules | Class List | Directories | File List | Class 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.
typedef void *(* Gan_CopyFunc )(void *)
 Generic copy 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

Version:
1.15
Date:
2004/05/14 08:32:19
Author:
pm
Copyright: (c) 2000 Imagineer Software Limited
Generated on Sat May 21 23:52:49 2005 by  doxygen 1.4.3