<< Previous | Next >>

plast

void * plast( Pool_t * p );

Description

Get the last allocated element in a root 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_init().

Return value

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

Library

POOL.LIB

See Also

pool_init, pool_link, palloc, pfree, pfirst


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