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* ptrpointer to memory to be freed.
unsigned longmemsize 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