mirror of
https://github.com/sigmasternchen/crap-libs
synced 2025-03-15 15:48:56 +00:00
20 lines
226 B
C
20 lines
226 B
C
#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;
|
|
}
|