aboutsummaryrefslogtreecommitdiff
path: root/ch2/2-07_invert.c (follow)
AgeCommit message (Collapse)AuthorFilesLines
2013-04-03Solve Exercise 2-07: invert()zlg1-0/+38
ost challenging "function puzzle" thus far. Modifying getword(), using various states, and the hashtable all create an example of how small building blocks can work together to make something. The implementation is very simple and nowhere near completely supporting '#define', but that's not the point. To properly support it, you'd need to build an entire preprocessor/parser, and that's far beyond the scope of both the exercise and book.