mirror of
https://github.com/troglobit/libite.git
synced 2026-11-17 19:30:17 +00:00
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
This commit is contained in:
1 parent
8befd09cf5
commit
0013f4fcf4
4 files changed
+80
-6
No files matched your search
@@ -15,6 +15,7 @@
|
||||
/makepath
|
||||
/pidfile
|
||||
/printhdr
|
||||
/procval
|
||||
/progress
|
||||
/rsync
|
||||
/runbg
|
||||
|
||||
Reference in new issue
Block a user