<< Previous | Next >>

pxlast

long pxlast( Pool_t * p );

Description

Get the last allocated element in an xmem pool. The pool MUST be set to being a linked pool using pool_link(p, <non-zero>); otherwise, the results are undefined.

Parameters

p
Pool handle structure, as previously passed to pool_xinit().

Return value

 0: There are no allocated elements
!0: Pointer to last, i.e., youngest, allocated element

Library

POOL.LIB

See Also

pool_xinit, pool_link, pxalloc, pxfree, pxfirst


Dynamic C Functions << Previous | Next >> rabbit.com