The realloc function

Name

realloc -- 

Synopsis

#include <stdlib.h>

void *realloc (void *ptr, size_t size);

Description

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

Returns

The realloc function returns either a null pointer or a pointer to the allocated space.

See Also

The calloc function
The free function
The malloc function

Implementation Notes

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