Reallocates the memory pointed to by mem, so that it now has space for
n_bytes bytes of memory. It returns the new address of the memory, which may
have been moved. mem may be null, in which case it's considered to
have zero-length. n_bytes may be 0, in which case null will be returned
and mem will be freed unless it is null.
If the allocation fails (because the system is out of memory),
the program is terminated.
Reallocates the memory pointed to by
mem, so that it now has space forn_bytesbytes of memory. It returns the new address of the memory, which may have been moved.memmay benull, in which case it's considered to have zero-length.n_bytesmay be 0, in which casenullwill be returned andmemwill be freed unless it isnull.If the allocation fails (because the system is out of memory), the program is terminated.