3 ms·
What for? Say printf returns an error, what would you do in that case?
by Kranar 6y ago
What for? Say printf returns an error, what would you do in that case?
- MaxBarraclough 6y agoIt's bad to just ignore errors. You could immediately terminate, perhaps after printing an error-message to stderr. Depending on the program, this might be better than continuing on with a broken output stream. In C++ you can have iostream throw on error, avoiding the problem of missing manual checks.