<< Previous | Next >>

pxfirst

long pxfirst( Pool_t * p );

Description

Get the first 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 first, i.e., oldest, allocated element.

Library

POOL.LIB

See Also

pool_xinit, pool_link, pxalloc, pxfree, pxlast, pxnext, pxprev


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