Hacker News new | past | comments | ask | show | jobs | submit login

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.



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.


... “bad idea to ignore the error code” ...

It took a few days to notice.


> C standard library

is an mostly an ancient POS




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: