aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2013-04-16Solve Exercise 3-2: escape/unescapezlg1-0/+68
2013-04-16Solve Exercise 3-1: binsearch2zlg2-1/+72
2013-04-06Solve Exercise 2-10: lower()zlg2-1/+33
Also added more information to 2-09's comments.
2013-04-06Solve Exercise 2-9: bitcount()zlg1-0/+43
2013-04-04Solve Exercise 2-8: rightrot()zlg1-0/+52
2013-04-03Solve Exercise 2-07: invert()zlg1-0/+38
2013-03-31Solve Exercise 2-6: setbits()zlg1-0/+44
2013-03-27Solve Exercise 2-5: The any() functionzlg1-0/+44
2013-03-22Solve Exercise 2-04: Squeeze v2zlg1-0/+51
2013-03-02Solve Exercise 2-3: Hex to integer converterzlg1-0/+48
This exercise was fun, and I learned a simpler way to convert them.
2013-02-28Change 2-02's solution to a while loopzlg1-11/+7
A recursive function is a bit much for something that simple.
2013-02-27Solve Exercise 2-02: No logical operatorszlg1-0/+44
The text doesn't specify which technique to use. The section outlined operator precedence, but I couldn't think of a way to check for truth in the three main expressions without logical operators. So I turned to a recursive function. It works, but I'm not sure if it's what K&R were after.
2013-02-21Shorten 2-01's codezlg1-22/+2
There's no code like no code! :)
2013-02-21Correct 2-01 solutionzlg1-4/+14
FLT_MIN and DBL_MIN refer to the lowest _positive number_ representable in floating-point form on the machine, not the lowest _negative number_. Subtracting FLT_MAX from 0 will give you the minimum.
2013-02-21Solve Exercise 2-01: Variable limitszlg2-0/+143
Fixed gitignore list, too
2013-02-13Add license file, reorganize projectzlg26-0/+15
2013-02-13Fix 1-09's solutionzlg1-2/+4
My initial solution tried to simplify the conditions for outputting a space. You really do need two 'if's in there.
2013-02-08Fix Exercise 1-12's solutionzlg1-2/+4
Printing a newline for each whitespace character was the wrong behavior.
2013-02-07Solve Exercises 1-1 to 1-12zlg12-0/+307
It was bugging me and the exercises are simple, so I pumped'em out.
2013-02-06Fix style issue and correct 1-24zlg1-4/+4
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!
2013-02-06First crack at 1-24zlg1-0/+151
Committing before I try something different.
2013-01-29Solve exercise 1-23: Remove C commentszlg2-15/+99
2013-01-09Solve Exercise 1-22: wordwrapzlg3-21/+82
* Removed unnecessary get_line() function in 1-17 * Corrected grammar in README, added an acknowledgement
2012-11-29Clean up 1-13 and 1-20, correct 1-21zlg4-46/+60
1-13 uses less variables and a for loop for the chart header 1-20 has minor changes 1-21 was rewritten to behave properly README has been rewritten to reflect the limitations of my solutions
2012-11-29Correct 1-13's chart headingzlg2-2/+8
Thanks to ##c's rizlah
2012-11-26Solve Exercise 1-21: entabzlg2-5/+56
2012-11-22Solve exercise 1.20: Detabzlg1-0/+43
2012-08-13Solve exercise 1.19: Reverse each line of inputzlg1-0/+54
2012-08-11Solve exercise 1.18zlg1-0/+38
2012-08-11Initial commitzlg7-0/+271