diff options
author | Roberto E. Vargas Caballero <k0ga@shike2.com> | 2012-10-28 06:27:42 +0100 |
---|---|---|
committer | Roberto E. Vargas Caballero <k0ga@shike2.com> | 2012-10-28 06:27:42 +0100 |
commit | 5de1468554c98ed8a40ac3d1e5d5c7db2eb1480b (patch) | |
tree | 0964a1ab765ee2a03ca68558d8aae9c2dd82740e /FAQ | |
parent | ab40392d08babcc02653a5a33352132ea9f1988f (diff) | |
download | st-5de1468554c98ed8a40ac3d1e5d5c7db2eb1480b.tar.gz st-5de1468554c98ed8a40ac3d1e5d5c7db2eb1480b.tar.bz2 |
Add error control to iofile
write can write less bytes than we request, so it is necessary check the
return value, in case of error print a message and don't continnue writing
in the file.
---
st.c | 39 ++++++++++++++++++++++++++++++---------
1 file changed, 30 insertions(+), 9 deletions(-)
Diffstat (limited to 'FAQ')
0 files changed, 0 insertions, 0 deletions