MALLOC(3) 386BSD Programmer's Manual MALLOC(3)
NAME
malloc, - general memory allocation function
SYNOPSIS
#include <stdlib.h>
void *
malloc(size_t size)
DESCRIPTION
The malloc() function allocates uninitialized space for an object whose
size is specified by size. The malloc() function maintains multiple lists
of free blocks according to size, allocating space from the appropriate
list.
The allocated space is suitably aligned (after possible pointer coercion)
for storage of any type of object. If the space is of pagesize or larger,
the memory returned will be page-aligned.
RETURN VALUES
The malloc() function returns a pointer to the allocated space if
successful; otherwise a null pointer is returned.
SEE ALSO
brk(2), pagesize(2), free(3), calloc(3), alloca(3), realloc(3),
memory(3)
STANDARDS
The malloc() function conforms to ANSI C3.159-1989 (``ANSI C'').
4th Berkeley Distribution June 29, 1991 1