aboutsummaryrefslogtreecommitdiff
path: root/ch4/4-02_atof2.c (follow)
AgeCommit message (Expand)AuthorFilesLines
2013-05-08Solve Exercise 4-2: atof() enhancedzlg1-0/+81
exercise is probably the most 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.