#ifndef __RMALLOC_H #define __RMALLOC_H /* * File : rmalloc.h * Author : Ronald Kriemann * Purpose : malloc library */ #include /* * supported arguments for mallopt */ /* extra amount of memory to allocate from system in each sbrk-call */ #ifndef M_TOP_PAD # define M_TOP_PAD -2 #endif #ifdef __cplusplus extern "C" { #endif /************************************** * * allocation and deallocation * **************************************/ extern void * malloc ( size_t size ); extern void * calloc ( size_t nmemb, size_t size); extern void free ( void * ptr ); extern void * realloc ( void * ptr, size_t size ); /* set malloc options */ extern int mallopt ( int param, int val ); /* report memory usage */ extern struct mallinfo mallinfo ( void ); #ifdef __cplusplus } #endif #endif /* __RMALLOC_H */