new_pool(3)

NAME
new_pool - allocate a new pool

SYNOPSIS
#include <pool.h>

pool new_pool (void);

DESCRIPTION

Allocate a new pool. Pools must eventually be deleted explicitly by calling delete_pool(3).

Note that new_pool is now deprecated. It is almost always better to create a subpool of the global pool, ie:

pool = new_subpool (global_pool);

This has the distinct advantage that your new pool will be cleaned up properly if the process calls exit.

AUTHOR
Richard Jones <rich@annexia.org>

LICENSE
GNU LGPL (see http://www.gnu.org/)

VERSION
c2lib-1.2.14

SEE ALSO
new_subpool(3), global_pool(3), delete_pool(3).