From eb9033dedd22d11b78edb622642d0fa00a20aefb Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Sun, 5 Feb 2023 18:26:17 +0100 Subject: [PATCH] defined why2_fopen --- src/core/lib/utils/memory.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/core/lib/utils/memory.c b/src/core/lib/utils/memory.c index 9859220..989b0b0 100644 --- a/src/core/lib/utils/memory.c +++ b/src/core/lib/utils/memory.c @@ -142,6 +142,15 @@ char *why2_strdup(char *string) return allocated; } +void *why2_fopen(char *name, char *modes) +{ + void *opened = fopen(name, modes); + + push_to_list(opened, FOPEN); + + return opened; +} + void why2_deallocate(void *pointer) { //VARIABLES