Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!usc!ginosko!uunet!virtech!cpcahil From: cpcahil@virtech.UUCP (Conor P. Cahill) Newsgroups: comp.lang.c Subject: Re: comp.lang.c Keywords: fread, Message-ID: <1084@virtech.UUCP> Date: 28 Aug 89 12:46:58 GMT References: <744@oucsace.cs.OHIOU.EDU> Organization: Virtual Technologies Inc Lines: 18 In article <744@oucsace.cs.OHIOU.EDU>, bchurch@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 | +-----------------------------------------------------------------------+