1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#include "mln_alloc.h" #include <stdio.h> int main(int argc, char *argv[]) { char *ptr; mln_alloc_t *pool; pool = mln_alloc_init(NULL); ptr = mln_alloc_m(pool, 1024); printf("%p\n", ptr); mln_alloc_free(ptr); mln_alloc_destroy(pool); return 0; }