Main Page | Modules | Class List | 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().


Detailed Description

Module: Memory allocation module

Part of: Gandalf Library

Version:
1.16
Date:
2005/08/22 08:52:18
Author:
jps
Copyright: (c) 2000 Imagineer Software Limited
Generated on Fri Mar 17 12:44:51 2006 by  doxygen 1.3.9.1