declared why2_realloc, why2_fopen, why2_fdopen and why2_open

This commit is contained in:
Václav Šmejkal 2023-01-31 15:51:02 +01:00
parent a199f30c7c
commit 8af6bd45c3
Signed by: ENGO150
GPG Key ID: 4A57E86482968843

View File

@ -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);