/

href='/knr/'>knr
Category-0 solutions to The C Programming Language, 2nd Editionzlg
aboutsummaryrefslogtreecommitdiff
path: root/ch4/4-01_strrindex.c (unfollow)
ss='deletions'>-4/+4
AgeCommit message (Collapse)AuthorFilesLines
2013-09-26Solve Exercise 5-11: `entab` and `detab` remixed!zlg2-0/+137
This one was pretty rough. At first I wanted to include a bunch of error-catching and "smart" stuff. When I took a second look at it and realized `itoa` returns 0 on a string, things became a bit easier. I may have been able to outsource a few things to a function or two, but overall I think it worked out.
2013-09-24Clean up 5-10's printf() callszlg1-4/+0
Escape sequences were being compared with the 'or' operator instead of the 'and' operator. If I had left it alone, every escape sequence would've borked it.
2013-02-06Solve Exercise 1-24: C syntax checkerzlg1-110/+122
I'm glad to be done with chapter 1. It feels like I'm starting to gain momentum. I'm certainly looking forward to using higher level constructs like switch(), which I think is available in Chapter 2. So far so good!