brealloc basic EMF

Synopsis

Reallocate a block of memory.

Prototype

void *brealloc(B_ARGS_DEC, void* mp, int newsize);

Parameters

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

Description

The GoAhead equivalent of realloc.

Note: Allows NULL pointers. Will just do a balloc on the size if that is the case.

Return Value

Return pointer to newly allocated block. If the realloc fails, NULL is returned and the previous buffer is preserved.

Example



See Also

balloc, bfree,