(void) and printf

geacc022%TimeVx at CIT-HAMLET.ARPA geacc022%TimeVx at CIT-HAMLET.ARPA
Tue Aug 6 00:09:00 AEST 1985


Granted, there are occasions when you want to test the return values
of the I/O functions.  But if you think (void) printf() is bad, how
about:

    (void) sprintf(str,"foo");

How often does sprintf() return an error indication on YOUR system?

		Gary



More information about the Comp.lang.c mailing list