libusual  0.1
Functions
usual/mempool.h File Reference

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.

Detailed Description

Simple memory pool for variable-length allocations.


Function Documentation

void* mempool_alloc ( struct MemPool **  pool,
unsigned  size 
)

Allocate from pool.

void mempool_destroy ( struct MemPool **  pool)

Release all memory in pool.