Share this page

# 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.

Tips to improve your search results... VuGen Function Reference Version 25.1-25.3 Function Reference 25.1-25.3 All View Local Help Center View Online Help Center Version: