Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
akaletF
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
1.
▲
by
akaletF
2y ago
I don't know. Most serious programs will use write() and then check the return value. In locations where it does not matter (say a test suite that is guaranteed to signal an error but an fprintf() error message could fail in theory
2.
▲
by
akaletF
2y ago
If println panics if the write fails that is kind of cheating, isn't it. Yes, toy C programs do not check the return value of printf . So what.