| libdatatypes 0.3.2
    Abstract datatypes for C. | 
Allocate memory blocks of same sizes. More...
Go to the source code of this file.
| Functions | |
| MemoryPool * | memory_pool_new (size_t item_size, size_t block_size) | 
| void | memory_pool_destroy (MemoryPool *pool) | 
Allocate memory blocks of same sizes.
Definition in file pool.c.
| void memory_pool_destroy | ( | MemoryPool * | pool | ) | 
| pool | MemoryPool to destroy | 
Destroys the given MemoryPool.
| MemoryPool * memory_pool_new | ( | size_t | item_size, | 
| size_t | block_size | ||
| ) | 
| item_size | size of allocated items | 
| block_size | number of elements a memory can hold | 
Creates a new MemoryPool.