#include <stdlib.h>

void* malloc( size_t size );

This function allocates storage of size_t bytes. malloc() returns the address of the first byte allocated. Unlike calloc() this storage is not gauranteed to be contiguous. If storage cannot be allocated, NULL is returned.

See also: calloc().


Back to Essential C Functions.