Memory pool structure.
typedef struct MemPool { long numItemsInPool; long numFreeInPool; MemPoolEntryPtr availList; char data[4]; } MemPool, *MemPoolPtr
A structure for keeping track of the state of a group of related blocks of memory
numItemsInPool
Total number allocated.numFreeInPool
Current number of free entries.availList
Pointer to first available entry.data
Start of user data blocks.MemPool.h