palloc -- Allocate an Element from a Storage Pool

SYNOPSIS
#include <pool.h>
void *palloc(POOL_t *p);
DESCRIPTION
palloc
allocates an element from a storage pool created by the
pool
function and returns its address. p
is a pointer (of type
POOL_t
) that points to the storage pool.
RETURN VALUE
palloc
returns the address of the allocated element. NULL
is
returned if all elements are allocated and it is impossible to extend the pool.
ERRORS
User ABEND 1205 or 1206 may occur if memory management data areas are overlaid.
EXAMPLE
See the example for pool
.
RELATED FUNCTIONS
malloc
, pool
SEE ALSO
Memory Allocation Functions