Commit Graph
1 Commits
Author SHA1 Message Date
omrzk 0013f4fcf4 Report write errors from writesf(), writellf(), and writedf()
The write functions return success when nothing was written, e.g., on
a stream that is not open for writing:

    writesf("data", "r", "/tmp/file");

They return the result of fclose() and drop the one from fprintf().

Return -1 when fprintf() fails, with errno from the failed write.

Closes #25
2026-11-16 14:13:07 +01:00