Memory management

#include <stdlib.h>

void free ( void *ptr );
Frees the block of memory pointed to by ptr

void * calloc ( size_t nmemb, size_t size );
Allocates adjacent blocks of memory, nmemb number of blocks of size individual block size
Parameters: nmemb - the number of blocks to allocate
size the size of each block

returns: a pointer on success, NULL on failure

void * malloc ( size_t size );
Allocate a block of memory
Parameters: size - the size of the requested block of memory, in bytes.

returns: a pointer on success, NULL on failure