libusual
0.1
|
Simple memory pool for variable-length allocations. More...
Functions | |
void * | mempool_alloc (struct MemPool **pool, unsigned size) _MALLOC |
Allocate from pool. | |
void | mempool_destroy (struct MemPool **pool) |
Release all memory in pool. |
Simple memory pool for variable-length allocations.
void* mempool_alloc | ( | struct MemPool ** | pool, |
unsigned | size | ||
) |
Allocate from pool.
void mempool_destroy | ( | struct MemPool ** | pool | ) |
Release all memory in pool.