From: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Sun, 28 Oct 2012 05:27:42 +0000 (+0100)
Subject: Add error control to iofile
X-Git-Url: https://git.xinqibao.xyz/st.git/commitdiff_plain/ee3fbeb6c8c354cf4db226a5b1583c531ea37af4?ds=sidebyside;hp=ee3fbeb6c8c354cf4db226a5b1583c531ea37af4

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(-)
---