From 2bfec0be952ca7e31e4b9c8eab9f97b0bd5c36c7 Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Sun, 29 Jan 2023 20:27:19 +0100 Subject: [PATCH] defined why2_malloc it will be technically just malloc with adding the allocated memory to linked list of something like that; you get the idea --- src/core/lib/utils/memory.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/core/lib/utils/memory.c b/src/core/lib/utils/memory.c index a10f362..41a5ad2 100644 --- a/src/core/lib/utils/memory.c +++ b/src/core/lib/utils/memory.c @@ -1 +1,10 @@ -#include \ No newline at end of file +#include + +#include + +void *why2_malloc(unsigned long size) +{ + //TODO: Add linked list + + return malloc(size); +} \ No newline at end of file