4 * Revision 1.1 2001/04/04 05:43:36 wang
5 * First commit: compiles on Linux, Amiga, Windows, Windows CE, generic gcc
7 * Revision 1.2 1999/11/29 14:57:42 bnv
8 * Changed: Defines only
10 * Revision 1.1 1999/11/26 08:53:29 bnv
14 * This file provides substitute routines for the stdio.h
15 * For some window systems.
37 # define SEEK_SET (FILE_BEGIN)
38 # define SEEK_CUR (FILE_CURRENT)
39 # define SEEK_END (FILE_END)
43 #define BIO_WRITE BIT1
44 #define BIO_APPEND BIT2
46 #define BIO_BINARY BIT4
47 #define BIO_UNICODE BIT5
55 BFILE
*Bfopen(const char *filename
, const char *mode
);
56 int Bfclose(BFILE
*stream
);
58 # define Bfseek(s,o,w) _llseek(s->handle,o,w)
60 # define Bfseek(s,o,w) SetFilePointer(s->handle,o,0,w)
62 #define Bftell(s) Bfseek(s,0L,SEEK_CUR)
63 int Bfeof(BFILE
*stream
);
64 int Bfflush(BFILE
*stream
);
65 void Bfputs(const char *s
, BFILE
*stream
);
66 int Bfgetc(BFILE
*stream
);
67 int Bfputc(char ch
, BFILE
*stream
);
70 void Bputs(const char *s
);
72 void Bputint(long num
, int length
, int radix
);