extern size_t fwrite(const void *buf, size_t size, size_t n, FILE *fp);
extern int fgetc(FILE *fp);
#define getc(fp) fgetc(fp)
+extern int ungetc(int c, FILE *fp);
extern char *fgets(char *s, int size, FILE *fp);
extern int fputc(int ch, FILE *fp);
extern int fputs(const char *s, FILE *fp);
_SysDebug("%p: %i-%i <= %i", fp,\r
(int)fp->Pos, (int)fp->BufferOfs, (int)fp->BufferPos);\r
if( fp->BufferPos > 0 ) {\r
- assert( fp->Pos - fp->BufferOfs <= fp->BufferPos );\r
+ assert( fp->Pos - fp->BufferOfs <= (int)fp->BufferPos );\r
}\r
- if( fp->BufferPos == 0 || fp->Pos - fp->BufferOfs == fp->BufferPos )\r
+ if( fp->BufferPos == 0 || fp->Pos - fp->BufferOfs == (int)fp->BufferPos )\r
{\r
int rv = _SysRead(fp->FD, fp->Buffer, fp->BufferSpace);\r
if( rv <= 0 ) {\r