Utility Functions and C Language Reference > C Language Reference > Alphabetical List of Functions > realloc

realloc

Example: realloc Return Values Memory Allocation Functions

Reallocates (adjusts the size of) a block of memory.

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

mem_address The name of the block of memory whose size is changed.
size The size in bytes of the block of memory requested.

Return Values

Returns a void * type pointer to the allocated space. If the system could not allocate the requested block of memory or if any of the parameters was 0, returns a NULL pointer.

For realloc details, refer to your C language documentation.