The malloc function

Name

malloc -- 

Synopsis

#include <stdlib.h>

void *malloc (size_t size);

Description

The malloc function allocates space for an object whose size is specified by size and whose value is indeterminate

Returns

The malloc function returns either a null pointer o a pointer to the allocated space.

See Also

The calloc function
The free function
The realloc function

Implementation Notes

The pointer returned is always 8-byte aligned so that objects of type double may be assigned.