From e075c022fa93af9d6aaf980589fb78cef56f30f3 Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Sun, 29 Jan 2023 20:36:54 +0100 Subject: [PATCH] defined why2_calloc & why2_free same thing as why2_malloc --- src/core/lib/utils/memory.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/core/lib/utils/memory.c b/src/core/lib/utils/memory.c index 41a5ad2..245e67b 100644 --- a/src/core/lib/utils/memory.c +++ b/src/core/lib/utils/memory.c @@ -7,4 +7,18 @@ void *why2_malloc(unsigned long size) //TODO: Add linked list return malloc(size); +} + +void *why2_calloc(unsigned long element, unsigned long size) +{ + //TODO: Add linked list + + return calloc(element, size); +} + +void why2_free(void *pointer) +{ + //TODO: Add linked list + + free(pointer); } \ No newline at end of file