#include <gandalf/common/allocate.h>Gandalf provides some macros to simplify access to the standard malloc() and realloc() functions. So for instance to allocate an array of a hundred integers you can use
int *aiArray; aiArray = gan_malloc_array ( int, 100 );instead of the usual
int *aiArray; aiArray = (int *) malloc ( 100*sizeof(int) );