comp.lang.c
Conor P. Cahill
cpcahil at virtech.UUCP
Mon Aug 28 22:46:58 AEST 1989
In article <744 at oucsace.cs.OHIOU.EDU>, bchurch at oucsace.cs.OHIOU.EDU (Bob Church) writes:
> while (rtns = (fread(buf,5,10,ioptr)) == 10)
should be:
while( (rtns = fread(buf,5,10,iopr)) == 10)
(you had the parens in the wrong place which caused the result of the
comparison to be assigned to rtns.
--
+-----------------------------------------------------------------------+
| Conor P. Cahill uunet!virtech!cpcahil 703-430-9247 !
| Virtual Technologies Inc., P. O. Box 876, Sterling, VA 22170 |
+-----------------------------------------------------------------------+
More information about the Comp.lang.c
mailing list