-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathFILE.H
More file actions
40 lines (30 loc) · 815 Bytes
/
Copy pathFILE.H
File metadata and controls
40 lines (30 loc) · 815 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// file.h
// various file-handling routines
// By Abe Pralle 10.25.95
#ifndef abe_h
#include <stdio.h>
#include "compat.h"
typedef unsigned char BYTE;
typedef unsigned char UBYTE;
typedef int WORD;
typedef unsigned int UWORD;
typedef long LONG;
typedef unsigned long ULONG;
typedef char CHAR;
#ifndef INT8
#define INT8 signed char
#endif
#define REGISTER register;
extern char cryptkey[];
void Error(const char *mesg);
FILE *ReadFile(char *fname);
ULONG FileSize(FILE *fp);
WORD Exists(char *fname);
FILE *fopen_case_insensitive(char *fname, const char *mode);
void set_file_debug(int enable);
void CloseFile(FILE *fp);
void ReadMem(FILE *fp, char *addr, ULONG size);
WORD ReadWord(FILE *fp);
UBYTE ReadUByte(FILE *fp);
void ReadString(FILE *fp,char *str);
#endif