summaryrefslogtreecommitdiff
path: root/melon/main.c
blob: 0798f69c028401e8c37c01a0712d4a0c1072a274 (plain)
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;
}