Memory block allocation routines.
#include "sys/cc.h"
Data Structures | |
struct | memb |
Macros | |
#define | MEMB(name, structure, num) |
Declare a memory block. More... | |
Functions | |
void * | memb_alloc (struct memb *m) |
Allocate a memory block from a block of memory declared with MEMB(). More... | |
char | memb_free (struct memb *m, void *ptr) |
Deallocate a memory block from a memory block previously declared with MEMB(). More... | |
void | memb_init (struct memb *m) |
Initialize a memory block that was declared with MEMB(). More... | |
int | memb_inmemb (struct memb *m, void *ptr) |