The libc implementation
Martin ‘Solar’ Baute
Public Domain
realloc.c | The libc implementation |
Todo’s | |
Primitive placeholder. Improve. | |
Functions | |
realloc | Attempts to resize the allocated block of memory given in ptr. |
void * realloc( void * ptr, size_t size )
Attempts to resize the allocated block of memory given in ptr. Resizes the memory to size bytes, or allocates a block of memory and copy the original contents to the new area.
Returns a pointer to the new location in memory.
Returns NULL if the memory could not be resized.
Attempts to resize the allocated block of memory given in ptr.
void * realloc( void * ptr, size_t size )