WHY2/include/memory.h

16 lines
454 B
C
Raw Normal View History

#ifndef WHY2_MEMORY_H
#define WHY2_MEMORY_H
#include <stdio.h> //TODO: Make the FILE* shit smarter | idk if it is possible
2023-01-29 20:25:32 +01:00
void *why2_malloc(unsigned long size);
2023-01-29 20:33:51 +01:00
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 why2_open(char *file, int flags, ...);
2023-01-29 20:33:51 +01:00
void why2_free(void *pointer);
#endif