crap-libs/memory/example.c

21 lines
226 B
C
Raw Normal View History

2017-03-10 22:17:53 +00:00
#include "memory.h"
#include <stdio.h>
int main(void) {
const char* str = "Hallo Welt";
char* tmp = clone_string(str);
printf("%s\n", tmp);
free(tmp);
tmp = allocate((size_t) 1 << 63);
free(tmp);
return 0;
}