diff options
author | Camil Staps | 2016-08-25 20:29:50 +0200 |
---|---|---|
committer | Camil Staps | 2016-08-25 20:29:50 +0200 |
commit | 821939c6a6eb5761708146783ebd562422c2a7f7 (patch) | |
tree | dd26b29c65431801f4ca45d6952b7806534f9c8c /compiler/mem.c | |
parent | Remove unnecessary includes (diff) |
pedantic
Diffstat (limited to 'compiler/mem.c')
-rw-r--r-- | compiler/mem.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/compiler/mem.c b/compiler/mem.c deleted file mode 100644 index 7affd71..0000000 --- a/compiler/mem.c +++ /dev/null @@ -1,16 +0,0 @@ -#include "mem.h" - -#include <stdio.h> - -void* my_calloc(size_t num, size_t size) { - void* ptr = calloc(num, size); - if (!ptr) { - perror(NULL); - exit(EXIT_FAILURE); - } - return ptr; -} - -void my_free(void* ptr) { - free(ptr); -} |