#include <stdlib.h>
Data Structures | |
struct | mblock |
Functions | |
mblock * | memalign (size_t boundary, size_t size) |
|
Allocate a block of memory with the malloc function and returns a mblock. The mblock::addr field of the mblock returned is the address of a buffer aligned to a multiple of boundary. The length of the aligned buffer is size. To deallocate a mblock and the corresponding buffer, you must use the free function on the mblock.
|