how to write () a constant?

Chris Torek chris at mimsy.umd.edu
Wed Jan 10 19:08:45 AEST 1990


>In article <21689 at mimsy.umd.edu> I wrote:
>>	if (fwrite((void *)&val, sizeof(val), 1, stream)) != sizeof(val))
>>		... handle error ...

In article <241 at heel.ribs.UUCP> reznick at ribs.UUCP (Larry Reznick) writes:
>The comparison is mistaken.  The fread() and fwrite() functions return
>their 3rd parameters if there's no error.

Oops!  Quite right.  Sorry about that.

(See, you *can* find mistakes in my articles occasionally. :-) )
-- 
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163)
Domain:	chris at cs.umd.edu	Path:	uunet!mimsy!chris



More information about the Comp.lang.c mailing list