News for hackers. Stuff that matters.
Re:Why should I have written ZeroMQ in C, not C++ (2012) by josefx on Thursday December 13, 2018 @04:30AM (#18671029)
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.
Re:Why should I have written ZeroMQ in C, not C++ (2012) by maxlybbert on Thursday December 13, 2018 @12:37PM (#18674232)
You 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.
Re:Why should I have written ZeroMQ in C, not C++ (2012) by maxlybbert on Saturday December 15, 2018 @01:29PM (#18689626)
... “bad idea to ignore the error code” ...

It took a few days to notice.

Re:Why should I have written ZeroMQ in C, not C++ (2012) by Gibbon1 on Thursday December 13, 2018 @05:20AM (#18671227)
> C standard library

is an mostly an ancient POS