aboutsummaryrefslogtreecommitdiff
path: root/FEAST/MIToolbox/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'FEAST/MIToolbox/util.c')
-rw-r--r--FEAST/MIToolbox/util.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/FEAST/MIToolbox/util.c b/FEAST/MIToolbox/util.c
deleted file mode 100644
index d9d7517..0000000
--- a/FEAST/MIToolbox/util.c
+++ /dev/null
@@ -1,14 +0,0 @@
-#include <string.h>
-#include <errno.h>
-
-#include "MIToolbox.h"
-
-// a wrapper for calloc that checks if it's allocated
-void *safe_calloc(size_t nelem, size_t elsize) {
- void *allocated = UNSAFE_CALLOC_FUNC(nelem, elsize);
- if(allocated == NULL) {
- fprintf(stderr, "Error: %s\n", strerror(errno));
- exit(EXIT_FAILURE);
- }
- return allocated;
-}