2 ms·
Not even used for the C standard library and that would lead to warning spam as every printf call could fail and if there is anything I have never seen it is C
by josefx 8y ago
Not even used for the C standard library and that would lead to warning spam as every printf call could fail and if there is anything I have never seen it is C code checking the return value of printf.
- Gibbon1 8y ago> C standard library is an mostly an ancient POS
- maxlybbert 8y agoYou would only mark functions where it’s a bad idea to return the error code that way. Printf isn’t a function like that, and fprintf probably isn’t (use case of printing to stderr), but fwrite is.
- maxlybbert 8y ago... “bad idea to ignore the error code” ... It took a few days to notice.