<< Previous | Next >>

palloc

void * palloc( Pool_t * p );

Description

Return next available free element from the given pool. Eventually, your application should return this element to the pool using pfree() to avoid memory leaks.

Assembler code can call palloc_fast() instead.

Parameters

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

Return value

Null: No free elements available
Otherwise, pointer to an element

Library

POOL.LIB

See Also

pool_init, pcalloc, pfree, phwm, pavail, palloc_fast, pxalloc, pool_link


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