add file operation

This commit is contained in:
jonathan santis
2025-05-13 13:49:10 +02:00
parent 3afd472bbd
commit 631fc8322a
3 changed files with 84 additions and 0 deletions

8
file.h Normal file
View File

@@ -0,0 +1,8 @@
#define NO_ERROR 0
//ERRORS
#define FILE_ERROR_OPEN 11
#define FILE_ERROR_STRCONTENT_TO_SMALL 12
#define FILE_ERROR_READ_MISMATCH 13
int getFile(char *fname, char **strContent,int cbSize,long *neededSize);