From 8af6bd45c38e780bb14d99aee0a572b028c186b6 Mon Sep 17 00:00:00 2001 From: ENGO150 <v.smejkal06@gmail.com> Date: Tue, 31 Jan 2023 15:51:02 +0100 Subject: [PATCH] declared why2_realloc, why2_fopen, why2_fdopen and why2_open --- include/memory.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/memory.h b/include/memory.h index 1f4a3da..51baedc 100644 --- a/include/memory.h +++ b/include/memory.h @@ -1,8 +1,15 @@ #ifndef WHY2_MEMORY_H #define WHY2_MEMORY_H +#include <stdio.h> //TODO: Make the FILE* shit smarter | idk if it is possible + void *why2_malloc(unsigned long size); void *why2_calloc(unsigned long element, unsigned long size); +void *why2_realloc(void *pointer, unsigned long size); + +FILE *why2_fopen(char *file_name, char *modes); +FILE *why2_fdopen(int file, char *modes); +int open(char *file, int flags, ...); void why2_free(void *pointer);