855e068963
Add a simple test app. Note: we don't compile the malloc replacement component.
19 lines
249 B
C
19 lines
249 B
C
#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;
|
|
}
|
|
|