Skip to main content

  | मौसम…

411 समाचार
Public archive edition · Attributed source reporting with original dates · AI drafts are excluded

411 REFERENCE · Wikibooks

C++ Programming/Code/Standard C Library/Functions/realloc

Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.

realloc #include <cstdlib> void *realloc( void *p, size_t s); The function realloc() resizes a block created by malloc() or calloc(), and returns a pointer to the new memory region. If the resize operation fails, realloc() returns NULL and leaves the old memory region intact. realloc() does not have a corresponding operator in C++ - however, this is not required since the standard template library already provides the necessary memory management for most usages. Related topics calloc - free - malloc