From zlotchen@cs.utk.edu Tue Jul 22 11:27:45 1997 Subject: strip new line bug I wrote already to couple students about a common bug in strip_new_line func. : --- ...., your strip_new_line function strips last chars even from the last line that does not end with \n. You can fix that. and later: -- New line at the end of a line is good thing, but lab does not say you should assume their is new line, just strip it if it is their. A case of absent \n is not a rare thing for last line in a file. Imagine writing in a cycle : printf("\n$s", varstring); Run you func on ~zlotchen/testf Thanks. David.