Why use (void) func() ?

Henry Spencer henry at zoo.toronto.edu
Wed Sep 26 02:39:06 AEST 1990


In article <3819 at goanna.cs.rmit.oz.au> ok at goanna.cs.rmit.oz.au (Richard A. O'Keefe) writes:
>... Are you _sure_ that you know all the causes of error in a
>call to printf() -- such as output being written to a file on a disc
>that has just filled up -- and have ensured that they can't happen?

For printf, it is usually a whole lot simpler -- in cases where it matters,
which it often doesn't -- to just check ferror() near the end.
-- 
TCP/IP: handling tomorrow's loads today| Henry Spencer at U of Toronto Zoology
OSI: handling yesterday's loads someday|  henry at zoo.toronto.edu   utzoo!henry



More information about the Comp.lang.c mailing list