aboutsummaryrefslogtreecommitdiff
path: root/ch3/3-01_binsearch2.c (follow)
AgeCommit message (Collapse)AuthorFilesLines
2013-04-16Solve Exercise 3-1: binsearch2zlg1-0/+71
td class='logsubject'>Re-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.