bfreeSafe basic EMF

Synopsis

Safe version of bfree

Prototype

void bfreeSafe(B_ARGS_DEC, void *mp); 

Parameters

B_ARGS_DEC Caller's source file name and line number. Really two arguments.
mp Pointer to the memory that is being freed

Description

This "safe" version just checks the pointer is not NULL before doing the free.

Return Value

No return value

Example

char_t* buf;

buf = NULL;
gsnprintf(buf, FNAMSIZE, T("%s %d"), string, integer);

...

bfreeSafe(B_L, buf);

See Also

balloc, bfree