<feed xmlns='http://www.w3.org/2005/Atom'>
<title>knr/ch2, branch master</title>
<subtitle>Category-0 solutions to The C Programming Language, 2nd Edition</subtitle>
<id>https://git.zlg.space/knr/atom/ch2?h=master</id>
<link rel='self' href='https://git.zlg.space/knr/atom/ch2?h=master'/>
<link rel='alternate' type='text/html' href='https://git.zlg.space/knr/'/>
<updated>2016-06-16T17:15:33Z</updated>
<entry>
<title>The massive astyle sweep!</title>
<updated>2016-06-16T17:15:33Z</updated>
<author>
<name>zlg</name>
<email>zlg@zlg.space</email>
</author>
<published>2016-06-16T17:15:33Z</published>
<link rel='alternate' type='text/html' href='https://git.zlg.space/knr/commit/?id=f8d9ff23eb8d3e3286ff5cf4d5f9493532991bb7'/>
<id>urn:sha1:f8d9ff23eb8d3e3286ff5cf4d5f9493532991bb7</id>
<content type='text'>
Code style should be consistent now. All future commits will be run through
astyle or they will be amended.
</content>
</entry>
<entry>
<title>Solve Exercise 3-1: binsearch2</title>
<updated>2013-04-16T05:53:42Z</updated>
<author>
<name>zlg</name>
<email>zlg@zlg.space</email>
</author>
<published>2013-04-16T05:53:42Z</published>
<link rel='alternate' type='text/html' href='https://git.zlg.space/knr/commit/?id=736bbc64f2b0af4faead40be3dc98ebe7f9fcbff'/>
<id>urn:sha1:736bbc64f2b0af4faead40be3dc98ebe7f9fcbff</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Solve Exercise 2-10: lower()</title>
<updated>2013-04-06T10:41:28Z</updated>
<author>
<name>zlg</name>
<email>zlg@zlg.space</email>
</author>
<published>2013-04-06T10:41:28Z</published>
<link rel='alternate' type='text/html' href='https://git.zlg.space/knr/commit/?id=84f1c31fcf1a073e161ece6284272ff75ee0dcf2'/>
<id>urn:sha1:84f1c31fcf1a073e161ece6284272ff75ee0dcf2</id>
<content type='text'>
Also added more information to 2-09's comments.
</content>
</entry>
<entry>
<title>Solve Exercise 2-9: bitcount()</title>
<updated>2013-04-06T09:14:36Z</updated>
<author>
<name>zlg</name>
<email>zlg@zlg.space</email>
</author>
<published>2013-04-06T09:14:36Z</published>
<link rel='alternate' type='text/html' href='https://git.zlg.space/knr/commit/?id=a91f4d1ad6b5389617f8941e70face69ad94dfda'/>
<id>urn:sha1:a91f4d1ad6b5389617f8941e70face69ad94dfda</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Solve Exercise 2-8: rightrot()</title>
<updated>2013-04-04T11:12:40Z</updated>
<author>
<name>zlg</name>
<email>zlg@zlg.space</email>
</author>
<published>2013-04-04T11:12:40Z</published>
<link rel='alternate' type='text/html' href='https://git.zlg.space/knr/commit/?id=927df414819f236b900f9f0d925b1a6a9385c115'/>
<id>urn:sha1:927df414819f236b900f9f0d925b1a6a9385c115</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Solve Exercise 2-07: invert()</title>
<updated>2013-04-03T12:15:17Z</updated>
<author>
<name>zlg</name>
<email>zlg@zlg.space</email>
</author>
<published>2013-04-03T12:15:17Z</published>
<link rel='alternate' type='text/html' href='https://git.zlg.space/knr/commit/?id=3529fb7a854a969f7fadf0d5310c659b933ea276'/>
<id>urn:sha1:3529fb7a854a969f7fadf0d5310c659b933ea276</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Solve Exercise 2-6: setbits()</title>
<updated>2013-03-31T10:38:14Z</updated>
<author>
<name>zlg</name>
<email>zlg@zlg.space</email>
</author>
<published>2013-03-31T10:38:14Z</published>
<link rel='alternate' type='text/html' href='https://git.zlg.space/knr/commit/?id=06c2a9d69b05cc717299b0325f5001ff0303eecf'/>
<id>urn:sha1:06c2a9d69b05cc717299b0325f5001ff0303eecf</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Solve Exercise 2-5: The any() function</title>
<updated>2013-03-27T10:00:43Z</updated>
<author>
<name>zlg</name>
<email>zlg@zlg.space</email>
</author>
<published>2013-03-27T10:00:43Z</published>
<link rel='alternate' type='text/html' href='https://git.zlg.space/knr/commit/?id=239a885d441cdb3585c42b594ed9e87b37b33c62'/>
<id>urn:sha1:239a885d441cdb3585c42b594ed9e87b37b33c62</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Solve Exercise 2-04: Squeeze v2</title>
<updated>2013-03-22T16:41:52Z</updated>
<author>
<name>zlg</name>
<email>zlg@zlg.space</email>
</author>
<published>2013-03-22T16:41:52Z</published>
<link rel='alternate' type='text/html' href='https://git.zlg.space/knr/commit/?id=999a2d4dcf3d918e37f76aae249b7b23f14bdd7d'/>
<id>urn:sha1:999a2d4dcf3d918e37f76aae249b7b23f14bdd7d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Solve Exercise 2-3: Hex to integer converter</title>
<updated>2013-03-02T14:23:14Z</updated>
<author>
<name>zlg</name>
<email>zlg@zlg.space</email>
</author>
<published>2013-03-02T14:23:14Z</published>
<link rel='alternate' type='text/html' href='https://git.zlg.space/knr/commit/?id=8b718555012492253951b63eb33b45e22a2ce807'/>
<id>urn:sha1:8b718555012492253951b63eb33b45e22a2ce807</id>
<content type='text'>
This exercise was fun, and I learned a simpler way to convert them.
</content>
</entry>
<entry>
<title>Change 2-02's solution to a while loop</title>
<updated>2013-02-28T06:03:30Z</updated>
<author>
<name>zlg</name>
<email>zlg@zlg.space</email>
</author>
<published>2013-02-28T06:03:30Z</published>
<link rel='alternate' type='text/html' href='https://git.zlg.space/knr/commit/?id=d6e0262ddbbbea7d207631a7889bb2e83a11d79d'/>
<id>urn:sha1:d6e0262ddbbbea7d207631a7889bb2e83a11d79d</id>
<content type='text'>
A recursive function is a bit much for something that simple.
</content>
</entry>
<entry>
<title>Solve Exercise 2-02: No logical operators</title>
<updated>2013-02-27T11:54:58Z</updated>
<author>
<name>zlg</name>
<email>zlg@zlg.space</email>
</author>
<published>2013-02-27T11:54:58Z</published>
<link rel='alternate' type='text/html' href='https://git.zlg.space/knr/commit/?id=8557e29d33b365816114996d04531468e13e78b1'/>
<id>urn:sha1:8557e29d33b365816114996d04531468e13e78b1</id>
<content type='text'>
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&amp;R were
after.
</content>
</entry>
<entry>
<title>Shorten 2-01's code</title>
<updated>2013-02-21T09:37:12Z</updated>
<author>
<name>zlg</name>
<email>zlg@zlg.space</email>
</author>
<published>2013-02-21T09:37:12Z</published>
<link rel='alternate' type='text/html' href='https://git.zlg.space/knr/commit/?id=3fc054da068cfb6b44cc026e33d28a4f628a31cd'/>
<id>urn:sha1:3fc054da068cfb6b44cc026e33d28a4f628a31cd</id>
<content type='text'>
There's no code like no code! :)
</content>
</entry>
<entry>
<title>Correct 2-01 solution</title>
<updated>2013-02-21T09:34:20Z</updated>
<author>
<name>zlg</name>
<email>zlg@zlg.space</email>
</author>
<published>2013-02-21T09:34:20Z</published>
<link rel='alternate' type='text/html' href='https://git.zlg.space/knr/commit/?id=43f5f3755d7fa66d9f525fe94fcc1517d3be55b9'/>
<id>urn:sha1:43f5f3755d7fa66d9f525fe94fcc1517d3be55b9</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>Solve Exercise 2-01: Variable limits</title>
<updated>2013-02-21T09:04:40Z</updated>
<author>
<name>zlg</name>
<email>zlg@zlg.space</email>
</author>
<published>2013-02-21T09:04:40Z</published>
<link rel='alternate' type='text/html' href='https://git.zlg.space/knr/commit/?id=831e4405d64b571f885e92b62b976ad2ced16b2e'/>
<id>urn:sha1:831e4405d64b571f885e92b62b976ad2ced16b2e</id>
<content type='text'>
Fixed gitignore list, too
</content>
</entry>
</feed>
