Add error control to iofile
authorRoberto E. Vargas Caballero <k0ga@shike2.com>
Sun, 28 Oct 2012 05:27:42 +0000 (06:27 +0100)
committerRoberto E. Vargas Caballero <k0ga@shike2.com>
Sun, 28 Oct 2012 05:27:42 +0000 (06:27 +0100)
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(-)


No differences found