From: Roberto E. Vargas Caballero Date: Sun, 28 Oct 2012 05:27:42 +0000 (+0100) Subject: Add error control to iofile X-Git-Url: https://git.danieliu.xyz/?a=commitdiff_plain;ds=inline;h=ee3fbeb6c8c354cf4db226a5b1583c531ea37af4;hp=ee3fbeb6c8c354cf4db226a5b1583c531ea37af4;p=st.git 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(-) ---