(void) fputs( line, stdout );
(void) alarm( TIMEOUT );
The above appears in the function body,I’ve never seen such code before…
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It’s a form of coding to debugging tools at the expense of human beings reading your code, and it’s Considered Harmful. In particular, the classic
linttool and perhaps some compilers generated warnings if you did not use the return value of a function that returned a value, and the only way to suppress this locally was to cast the result tovoid.Either ignore it, or fix it (remove the useless
voidcasts) if you have sufficient authority to do so.