2006-09-03 11:57:04 +00:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string.h>
|
|
|
|
|
2006-03-11 18:57:05 +00:00
|
|
|
#include "umem.h"
|
|
|
|
|
2020-06-22 18:21:25 +00:00
|
|
|
#define UMEM_STANDALONE 1
|
|
|
|
#include "umem_impl.h"
|
|
|
|
|
2006-03-11 18:57:05 +00:00
|
|
|
int main(int argc, char *argv[])
|
|
|
|
{
|
|
|
|
char *foo;
|
2020-06-22 18:21:25 +00:00
|
|
|
|
2006-03-11 18:57:05 +00:00
|
|
|
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);
|
|
|
|
|
2006-09-03 12:48:23 +00:00
|
|
|
return EXIT_SUCCESS;
|
2006-03-11 18:57:05 +00:00
|
|
|
}
|