2013-05-17 10:58:27 -04:00
|
|
|
#ifndef _FILEIO_H_
|
|
|
|
#define _FILEIO_H_
|
|
|
|
|
2013-06-09 04:16:02 -04:00
|
|
|
#define FIOSUC 0 /* File I/O, success. */
|
|
|
|
#define FIOFNF 1 /* File I/O, file not found. */
|
|
|
|
#define FIOEOF 2 /* File I/O, end of file. */
|
|
|
|
#define FIOERR 3 /* File I/O, error. */
|
|
|
|
#define FIOMEM 4 /* File I/O, out of memory */
|
|
|
|
#define FIOFUN 5 /* File I/O, eod of file/bad line */
|
|
|
|
|
2013-06-08 05:32:48 -04:00
|
|
|
#define FTYPE_NONE 0
|
|
|
|
#define FTYPE_UNIX 1
|
|
|
|
#define FTYPE_DOS 2
|
|
|
|
#define FTYPE_MAC 4
|
|
|
|
|
|
|
|
extern int ftype ;
|
|
|
|
|
2013-05-17 10:58:27 -04:00
|
|
|
int fexist( const char *fname) ;
|
|
|
|
int ffclose( void) ;
|
|
|
|
int ffgetline( void) ;
|
2013-06-08 23:21:35 -04:00
|
|
|
int ffputline( char *buf, int nbuf, int dosflag) ;
|
2013-05-17 10:58:27 -04:00
|
|
|
int ffropen( const char *fn) ;
|
|
|
|
int ffwopen( const char *fn) ;
|
|
|
|
|
|
|
|
#endif
|