wouldn't both c != '\n' and c != 10 effectively test the same thing?
Aaah ... yes, I'm losing the plot. (Somehow I had managed to prove to myself that both '\r' and '\n' were 0x0D .... damned if I can reproduce that work of inspired genius now, though :-)