bdk: heap: add zalloc and utilize it

This commit is contained in:
CTCaer committed 2024-03-27 09:00:53 +02:00
1 parent 9e41aa7759
commit d687b53249
8 files changed
+25 -17

No files matched your search

+1 -1
View File
@@ -107,7 +107,7 @@
**************************************/
#include <mem/heap.h> /* malloc, calloc, free */
#define ALLOC(s) malloc(s)
#define ALLOC_AND_ZERO(s) calloc(1,s)
#define ALLOC_AND_ZERO(s) zalloc(s)
#define FREEMEM free
#include <string.h> /* memset, memcpy */
#define MEM_INIT memset