summaryrefslogtreecommitdiff
path: root/umem_test.c
blob: 113139afc060077dff9d91dd5207f834cd14d5ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include "umem.h"

int main(int argc, char *argv[])
{
  char *foo;
  
  umem_startup(NULL, 0, 0, NULL, NULL);

  foo = umem_alloc(32, UMEM_DEFAULT);

  strcpy(foo, "hello there");

  printf("Hello %s\n", foo);

  umem_free(foo, 32);

  return 0;
}