From 82a7c12e8338288ccb40d213fcc9e15d102aa968 Mon Sep 17 00:00:00 2001 From: KatolaZ Date: Thu, 1 Aug 2019 16:42:36 +0100 Subject: remove trailing blank lines in write_file - change check_bound --- files.c | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'files.c') diff --git a/files.c b/files.c index 17743a5..dfeb3b2 100644 --- a/files.c +++ b/files.c @@ -7,7 +7,7 @@ void write_file(FILE *fc){ FILE *fout; - int i; + int i, ne; if (!fname[0] || force_new){ get_string(fc, "Write to: ", fname, 255); @@ -23,8 +23,16 @@ void write_file(FILE *fc){ get_key(fc, "Error opening file."); return; } + ne = 0; for (i=0; i