aboutsummaryrefslogtreecommitdiff
path: root/ch1/1-16_longest-line.c (follow)
AgeCommit message (Collapse)AuthorFilesLines
2015-12-191-16 solution code and comment style cleanupzlg1-48/+44
Also of note is the length that the program reports includes the newline character at the end. This has been clarified in a comment. The exercise text does not specify whether to include newlines as part of the length, so it was left alone. Removed the contributor notice, since contributor acknowledgements are centralized.
2015-12-19Re-solve Exercise 1-16: arbitrarily long maxlineIsa Hassen1-44/+60
A completely rewritten solution which follows the spec given in the book exactly; make the program work for arbitrarily long input lines while modifying `main()` only. I've only changed the name of the macro MAXLINE to BUFFSIZE for clarity - otherwise the code is typed up exactly as found in the book. It demonstrates the use of a buffer without modifying any of the helper functions.
2013-04-23Add exercise descriptions and answers for ch1zlg1-0/+11
* Corrected behavior in solutions for 1-9 and 1-23
2013-02-13Add license file, reorganize projectzlg1-0/+52