From 90b1fef457a29b96d51aa1b42871844d22d6e76e Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Sun, 5 Feb 2023 18:45:20 +0100 Subject: [PATCH] defined why2_fdopen --- 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 80f02a4..2a6c2ff 100644 --- a/src/core/lib/utils/memory.c +++ b/src/core/lib/utils/memory.c @@ -151,6 +151,15 @@ void *why2_fopen(char *name, char *modes) return opened; } +void *why2_fdopen(int file, char *modes) +{ + void *opened = fdopen(file, modes); + + push_to_list(opened, OPEN); + + return opened; +} + void why2_deallocate(void *pointer) { //VARIABLES