Re: (void) printf vs printf
"No Such Luck" <no_suchluck@ho tmail.com> wrote:
# > Also, if the programmer is being particularily careful to check
# > error conditions at every place errors can occur, then
# > a (void) on the printf() can be a signal that the lack of error
# > checking on that one statement is a deliberate design decision
# > instead of something that was overlooked.
#
# Interesting. I knew things like successful file openings should be
# error checked, and pointers should be checked before accessing, etc.
# But printfs? What is usually the accepted degree of error checking?
What I'm wonderring is how do you report an error if printf doesn't
work? I usually use printf or fprintf or perror to print errors. If
the printf doesn't work how do you report the printf doesn't work?
--
SM Ryan http://www.rawbw.com/~wyrmwif/
Who's leading this mob?
"No Such Luck" <no_suchluck@ho tmail.com> wrote:
# > Also, if the programmer is being particularily careful to check
# > error conditions at every place errors can occur, then
# > a (void) on the printf() can be a signal that the lack of error
# > checking on that one statement is a deliberate design decision
# > instead of something that was overlooked.
#
# Interesting. I knew things like successful file openings should be
# error checked, and pointers should be checked before accessing, etc.
# But printfs? What is usually the accepted degree of error checking?
What I'm wonderring is how do you report an error if printf doesn't
work? I usually use printf or fprintf or perror to print errors. If
the printf doesn't work how do you report the printf doesn't work?
--
SM Ryan http://www.rawbw.com/~wyrmwif/
Who's leading this mob?
Comment