mirror of
https://github.com/sigmasternchen/crap-libs
synced 2025-03-15 23:58:55 +00:00
21 lines
226 B
C
21 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;
|
||
|
}
|