<< Previous | Next >>

pfirst

void * pfirst( Pool_t * p );

Description

Get the first allocated element in a root pool. The pool MUST be set to being a linked pool using:

   

 pool_link(p, <non-zero>)

Otherwise, the result is undefined.

Parameters

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

Return value

Null: There are no allocated elements
Otherwise, pointer to first (i.e., oldest) allocated element

Library

POOL.LIB

See Also

pool_init, pool_link, palloc, pfree, plast, pnext, pprev


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