www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/07/13/22:15:29

Date: Wed, 13 Jul 94 21:42:22 EDT
From: peprbv AT cfa0 DOT harvard DOT edu (Bob Babcock)
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: 1.12 ?
Reply-To: babcock AT cfa DOT harvard DOT edu

> 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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019