#ifndef _MALLOC_H #define _MALLOC_H #include "stddef.h" //################################################################################################## extern void *calloc(size_t /*number*/, size_t /*size*/); /* * allocates space for an array of nmemb objects, each of whose size is * 'size'. The space is initialised to all bits zero. * Returns: either a null pointer or a pointer to the allocated space. */ void *realloc(void *ptr_par,size_t n); /* * change size of the resutl of the malloc or calloc . * return:either a null pointer or a pointer to the new space or keep sapce. */ extern void free(void * /*p*/); /* * causes the space pointed to by ptr to be deallocated (i.e., made * available for further allocation). If ptr is a null pointer, no action * occurs. Otherwise, if ptr does not match a pointer earlier returned by * calloc, malloc or realloc or if the space has been deallocated by a call * to free or realloc, the behaviour is undefined. */ extern void *malloc(size_t /*size*/); /* * allocates space for an object whose size is specified by 'size' and whose * value is indeterminate. * Returns: either a null pointer or a pointer to the allocated space. */ //################################################################################################## #endif