k&r; exercise 1.16 - longest line (arbitrary length)