I am going through the Kernighan and Ritchie's The C Programming Language, Second Edition and I am having a problem understanding the nature of the assignment in Exercise 1-16. I've read it over many times but cannot figure out exactly what they are asking of me; forgive me but English is not my first language.
The exercise description is:
Revise the main routine of the longest-line program so that it will correctly print the length of arbitrarily long input lines and as much as possible of the text.
Does this mean that the program should no longer be constrained by the MAXLINE
string limitation when it comes to the length of the longest line or that it wants you to print every line alone with their lengths? If it's the latter, does it want you to print each line after it is entered along with its length or just the lengths?
The two options I've come up with are quite different so I would really appreciate some advice.