brealloc | basic | EMF |
Reallocate a block of memory.
void *brealloc(B_ARGS_DEC, void* mp, int newsize);
B_ARGS_DEC | Callers source file name and line number. Really two arguments. |
mp | Pointer to a previously allocated memory block using balloc |
newsize | New size in bytes |
The GoAhead equivalent of realloc.
Note: Allows NULL pointers. Will just do a balloc on the size if that is the case.
Return pointer to newly allocated block. If the realloc fails, NULL is returned and the previous buffer is preserved.