Bsoft function
bfree
Source:
src/util/utilities.c
Description:
Frees allocated memory.
Algorithm:
It is called exactly like free, with the following enhancements:
If freeing fails an error message is printed.
The memory counter is updated on successful freeing.
Arguments:
| void* ptr | pointer to memory to be freed.
|
| unsigned long | memsize size of memory block pointed to.
|
Returns:
int 0 = success, -1 = failure.
Prototype:
int bfree(void* ptr, unsigned long memsize)
Other objects included:
struct Bcomponent
Generated by bdoc.pl on Thu Dec 16 10:52:51 2010
Back to the Bsoft home