]> git.lizzy.rs Git - nothing.git/blob - src/system/nth_alloc.c
Remove nth_realloc
[nothing.git] / src / system / nth_alloc.c
1 #include <stdlib.h>
2 #include "nth_alloc.h"
3 #include "log.h"
4
5 void *nth_calloc(size_t num, size_t size)
6 {
7     void *mem = calloc(num, size);
8
9     if (mem == NULL) {
10         log_fail("nth_calloc(%lu, %lu) failed", num, size);
11     }
12
13     return mem;
14 }