]> git.sur5r.net Git - cc65/blob - libsrc/common/_file.h
Added mouse module from C64
[cc65] / libsrc / common / _file.h
1 /*
2  * _file.h
3  *
4  * Ullrich von Bassewitz, 02.06.1998
5  *
6  */
7
8
9
10 #ifndef __FILE_H
11 #define __FILE_H
12
13
14
15 #include <stdio.h>
16
17
18
19 /* Definition of struct _FILE */
20 struct _FILE {
21     char        f_fd;
22     char        f_flags;
23 };
24
25 /* File table. Beware: FOPEN_MAX is hardcoded in the ASM files! */
26 extern FILE _filetab [FOPEN_MAX];
27
28 /* Flags field */
29 #define _FCLOSED        0x00
30 #define _FOPEN          0x01
31 #define _FEOF           0x02
32 #define _FERROR         0x04
33
34
35
36 FILE* _fopen (const char* name, const char* mode, FILE* f);
37 /* Open the specified file and fill the descriptor values into f */
38
39 FILE* _fdesc (void);
40 /* Find a free FILE descriptor */
41
42
43
44 /* End of _file.h */
45 #endif
46
47
48