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