Namespaces
Variants
Views
Actions

std::realloc

From cppreference.com
< cpp‎ | memory‎ | c
Revision as of 01:30, 13 June 2011 by P12 (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Template:cpp/memory/c/sidebar

Defined in header <cstdlib>
void *malloc( size_t size );

Allocates an area of memory.

Template:params

size - number of bytes to allocate

Template:returns

pointer to the beginning of newly allocated memory or Template:cpp if error has occurred. The pointer must be deallocated with free().