aboutsummaryrefslogtreecommitdiff
path: root/lib/alloc/heapalloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/alloc/heapalloc.c')
-rw-r--r--lib/alloc/heapalloc.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/lib/alloc/heapalloc.c b/lib/alloc/heapalloc.c
deleted file mode 100644
index 0a698f0..0000000
--- a/lib/alloc/heapalloc.c
+++ /dev/null
@@ -1,12 +0,0 @@
-#include <stdlib.h>
-
-#include "alloc.h"
-
-void *
-heapalloc(void *, void *ptr, size_t, size_t new)
-{
- if (new > 0)
- return realloc(ptr, new);
- free(ptr);
- return nullptr;
-}