<< Previous | Next >> | |
|
void pxfree( Pool_t * p, long e );
Description
- Free an element that was previously obtained via
pxalloc()
.
- Note: if you free an element that was not allocated from this pool, or was already free, or was outside the pool, then your application will crash! You can detect most of these programming errors by defining the following symbols before #use pool.lib:
POOL_DEBUG
POOL_VERBOSEParameters
- p
- Pool handle structure, as previously passed to pxalloc
()
.
- e
- Element to free, which was returned from
pxalloc()
.
Return value
null
: There are no more elements
!null
: Pointer to previous allocated elementLibrary
- POOL.LIB
See Also
- pool_xinit, pxalloc, pxcalloc, phwm, pavail
Dynamic C Functions | << Previous | Next >> | rabbit.com |