<feed xmlns='http://www.w3.org/2005/Atom'>
<title>knr/ch7, branch master</title>
<subtitle>Category-0 solutions to The C Programming Language, 2nd Edition</subtitle>
<id>https://git.zlg.space/knr/atom/ch7?h=master</id>
<link rel='self' href='https://git.zlg.space/knr/atom/ch7?h=master'/>
<link rel='alternate' type='text/html' href='https://git.zlg.space/knr/'/>
<updated>2017-02-27T09:20:38Z</updated>
<entry>
<title>Solve Exercise 7-9: isupper, time, and space</title>
<updated>2017-02-27T09:20:38Z</updated>
<author>
<name>zlg</name>
<email>zlg@zlg.space</email>
</author>
<published>2017-02-27T09:20:38Z</published>
<link rel='alternate' type='text/html' href='https://git.zlg.space/knr/commit/?id=fcfb2db63b01f209fb2c8fdc500023241435377f'/>
<id>urn:sha1:fcfb2db63b01f209fb2c8fdc500023241435377f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Solve Exercise 7-8: Paged file print-outs</title>
<updated>2017-02-20T11:21:59Z</updated>
<author>
<name>zlg</name>
<email>zlg@zlg.space</email>
</author>
<published>2017-02-20T11:21:59Z</published>
<link rel='alternate' type='text/html' href='https://git.zlg.space/knr/commit/?id=729b54b9f6921ca9a4ee91ddb743a6fb7203658c'/>
<id>urn:sha1:729b54b9f6921ca9a4ee91ddb743a6fb7203658c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Solve Exercise 7-7: Match pattern in files</title>
<updated>2016-11-21T08:07:37Z</updated>
<author>
<name>zlg</name>
<email>zlg@zlg.space</email>
</author>
<published>2016-11-21T08:07:37Z</published>
<link rel='alternate' type='text/html' href='https://git.zlg.space/knr/commit/?id=0947afc6a1338a0408c8d6fe12cda08f87cca2bb'/>
<id>urn:sha1:0947afc6a1338a0408c8d6fe12cda08f87cca2bb</id>
<content type='text'>
This one was tricky, but the solution was rather simple.
</content>
</entry>
<entry>
<title>Remove unneeded function declaration in 7-06</title>
<updated>2016-11-21T08:04:34Z</updated>
<author>
<name>zlg</name>
<email>zlg@zlg.space</email>
</author>
<published>2016-11-21T08:04:34Z</published>
<link rel='alternate' type='text/html' href='https://git.zlg.space/knr/commit/?id=55e5e56ff1eae9b6234ec885b4fc6fee907d1e75'/>
<id>urn:sha1:55e5e56ff1eae9b6234ec885b4fc6fee907d1e75</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Solve Exercise 7-6: simple `diff` utility</title>
<updated>2016-11-17T15:34:18Z</updated>
<author>
<name>zlg</name>
<email>zlg@zlg.space</email>
</author>
<published>2016-11-17T15:34:18Z</published>
<link rel='alternate' type='text/html' href='https://git.zlg.space/knr/commit/?id=54b3475b3041bf35c25bfad2f521d5751e6eadbf'/>
<id>urn:sha1:54b3475b3041bf35c25bfad2f521d5751e6eadbf</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Actually run astyle on the file...</title>
<updated>2016-10-12T13:54:44Z</updated>
<author>
<name>zlg</name>
<email>zlg@zlg.space</email>
</author>
<published>2016-10-12T13:54:44Z</published>
<link rel='alternate' type='text/html' href='https://git.zlg.space/knr/commit/?id=ce7f0379df5dbfca9b86492ea5d2993196a1cc52'/>
<id>urn:sha1:ce7f0379df5dbfca9b86492ea5d2993196a1cc52</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Solve Exercise 7-5: RPN calculator with scanf()</title>
<updated>2016-10-12T13:49:26Z</updated>
<author>
<name>zlg</name>
<email>zlg@zlg.space</email>
</author>
<published>2016-10-12T13:49:26Z</published>
<link rel='alternate' type='text/html' href='https://git.zlg.space/knr/commit/?id=edf72affee48c3e6530d6f60142d834eecae8aa3'/>
<id>urn:sha1:edf72affee48c3e6530d6f60142d834eecae8aa3</id>
<content type='text'>
This exercise was deceptively simple, and ended up simpler than the
original! The *scanf series of functions is very useful, but you also
have to be careful or you'll run into segfaults.
</content>
</entry>
<entry>
<title>Solve Exercise 7-4: minscanf()</title>
<updated>2016-06-30T10:56:52Z</updated>
<author>
<name>zlg</name>
<email>zlg@zlg.space</email>
</author>
<published>2016-06-30T10:56:52Z</published>
<link rel='alternate' type='text/html' href='https://git.zlg.space/knr/commit/?id=3aa9b1189dc7ee6660a2b7123ee9a00df0f9ca09'/>
<id>urn:sha1:3aa9b1189dc7ee6660a2b7123ee9a00df0f9ca09</id>
<content type='text'>
This one wasn't too bad, either! There's a minor bug in the code, but
I'm not sure how to fix it. It *technically* meets muster, though. :P
</content>
</entry>
<entry>
<title>Solve Exercise 7-3: minprintf()</title>
<updated>2016-06-26T09:57:18Z</updated>
<author>
<name>zlg</name>
<email>zlg@zlg.space</email>
</author>
<published>2016-06-26T09:57:18Z</published>
<link rel='alternate' type='text/html' href='https://git.zlg.space/knr/commit/?id=a8db504e7d098123075bd00d2a998488a97af81d'/>
<id>urn:sha1:a8db504e7d098123075bd00d2a998488a97af81d</id>
<content type='text'>
</content>
</entry>
<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 7-2: Format arbitrary input</title>
<updated>2016-06-16T16:51:16Z</updated>
<author>
<name>zlg</name>
<email>zlg@zlg.space</email>
</author>
<published>2016-06-16T16:51:16Z</published>
<link rel='alternate' type='text/html' href='https://git.zlg.space/knr/commit/?id=82656bf5aa4edd668e1adc3faa8148251509b912'/>
<id>urn:sha1:82656bf5aa4edd668e1adc3faa8148251509b912</id>
<content type='text'>
The solution is technically not 100% correct, but good luck figuring out
a robust solution inside Category-0 restrictions. Unicode characters
like ¬ or ♥ show up as 64-bit hex codes and I couldn't find a way to
shorten them. Then again, UTF-8 supports characters up to 8 bytes long.
Use it with plain ASCII and it looks only minorly off.
</content>
</entry>
<entry>
<title>Solve Exercise 7-1: `upper` and `lower`</title>
<updated>2015-12-08T11:10:43Z</updated>
<author>
<name>zlg</name>
<email>zlg@zlg.space</email>
</author>
<published>2015-12-08T11:10:43Z</published>
<link rel='alternate' type='text/html' href='https://git.zlg.space/knr/commit/?id=ea3c92d58cdf2d4030598d1052c2eb6cf2d8cc7e'/>
<id>urn:sha1:ea3c92d58cdf2d4030598d1052c2eb6cf2d8cc7e</id>
<content type='text'>
Two cases, one file. This exercise was a welcome departure from the
recent head-scratchers. It made me think about a solution for the
pathname issue I realized would crop up, too.

I'm roughly 75% done with the book! Maybe by the time I finish it, I'll
have a Makefile ready for the project...
</content>
</entry>
</feed>
