forked from LaPingvino/The-Puzzle-Pits
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFILE.H
More file actions
34 lines (24 loc) · 646 Bytes
/
FILE.H
File metadata and controls
34 lines (24 loc) · 646 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
// file.h
// various file-handling routines
// By Abe Pralle 10.25.95
#ifndef abe_h
#include <stdio.h>
typedef char BYTE;
typedef unsigned char UBYTE;
typedef int WORD;
typedef unsigned int UWORD;
typedef long LONG;
typedef unsigned long ULONG;
typedef char far CHAR;
#define REGISTER register;
extern char cryptkey[];
void Error(char *mesg);
FILE *ReadFile(char *fname);
ULONG FileSize(FILE *fp);
WORD Exists(char *fname);
void CloseFile(FILE *fp);
void ReadMem(FILE *fp, char far *addr, ULONG size);
WORD ReadWord(FILE *fp);
UBYTE ReadUByte(FILE *fp);
void ReadString(FILE *fp,char far *str);
#endif