aboutsummaryrefslogtreecommitdiff
path: root/ch7 (follow)
AgeCommit message (Collapse)AuthorFilesLines
2016-11-21Solve Exercise 7-7: Match pattern in fileszlg1-0/+128
This one was tricky, but the solution was rather simple.
2016-11-21Remove unneeded function declaration in 7-06zlg1-1/+0
2016-11-17Solve Exercise 7-6: simple `diff` utilityzlg1-0/+81
2016-10-12Actually run astyle on the file...zlg1-23/+23
2016-10-12Solve Exercise 7-5: RPN calculator with scanf()zlg1-0/+114
This exercise was deceptively simple, and ended up simpler than the original! The *scanf series of functions is very useful, but you also have to be careful or you'll run into segfaults.
2016-06-30Solve Exercise 7-4: minscanf()zlg1-0/+70
This one wasn't too bad, either! There's a minor bug in the code, but I'm not sure how to fix it. It *technically* meets muster, though. :P
2016-06-26Solve Exercise 7-3: minprintf()zlg1-0/+75
2016-06-16The massive astyle sweep!zlg1-2/+2
Code style should be consistent now. All future commits will be run through astyle or they will be amended.
2016-06-16Solve Exercise 7-2: Format arbitrary inputzlg1-0/+101
The solution is technically not 100% correct, but good luck figuring out a robust solution inside Category-0 restrictions. Unicode characters like ¬ or ♥ show up as 64-bit hex codes and I couldn't find a way to shorten them. Then again, UTF-8 supports characters up to 8 bytes long. Use it with plain ASCII and it looks only minorly off.
2015-12-08Solve Exercise 7-1: `upper` and `lower`zlg1-0/+52
Two cases, one file. This exercise was a welcome departure from the recent head-scratchers. It made me think about a solution for the pathname issue I realized would crop up, too. I'm roughly 75% done with the book! Maybe by the time I finish it, I'll have a Makefile ready for the project...