-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathFILES.H
More file actions
22 lines (19 loc) · 674 Bytes
/
FILES.H
File metadata and controls
22 lines (19 loc) · 674 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef __FILES_H
#define __FILES_H
#include "shutup.h"
int SafeOpenW(char *fname);
int SafeOpenR(char *fname);
FILE *SafeFOpen(char *fname, const char *tryb);
void SafeRead(int handle, void *buf, udword ile);
void SafeWrite(int handle, void *buf, udword ile);
void SafeFRead(void *buf, udword ile, FILE *f);
void SafeFWrite(void *buf, udword ile, FILE *f);
udword fsize(FILE *f);
udword SafeSize(int handle);
void *SafeLoad(char *fname);
udword SafeLoadS(char *fname, void **bufptr);
void *SafeFLoad(char *fname);
udword SafeFLoadS(char *fname, void **bufptr);
void SafeSave(char *fname, void *buf, udword ile);
void SafeFSave(char *fname, void *buf, udword ile);
#endif