Mail Archives: djgpp/1994/07/13/22:15:29
> If anyone knows of a bug
djgpp prototypes for fread and fwrite in stdio.h are
int fread(void*, int, int, FILE*);
int fwrite(const void*, int, int, FILE*);
Borland and K&R 2nd edition say that the 2nd and 3rd args to fread and the
2nd and 3rd args to fwrite should be type size_t (which is unsigned). This
discrepancy makes it impossible to write code which compiles without warnings
with both gcc and bcc. I suspect that there are other similar problems, but
these two keep bothering me.
- Raw text -