Reallocate a memory block.
Syntax
Parameters
- ptr
- Pointer to the start of a memory area to reallocate.
- size
- The new size for the allocated memory.
Returns
The realloc() function returns a pointer, possibly identical to ptr, to the allocated memory if successful; otherwise a IntPtr.Zero pointer is returned and Stdlib.GetLastError returns Errno.ENOMEM. The realloc() function always leaves the original buffer intact when an error occurs.
Remarks
Requirements
Namespace: Mono.Unix.Native
Assembly: Mono.Posix (in Mono.Posix.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0