Header: stdlib.h
Syntax:
char *realloc
(
void *ptr,
size_t size
);
Purpose: Resizes a block of memory previously allocated by malloc, calloc or realloc. The new size is gives by size.
If the reallocation fails this function returns NULL (and sets errno to ENOMEM), but note that the previous memory is still allocated.
|
|
|