aboutsummaryrefslogtreecommitdiff
path: root/1-20_detab.c
diff options
context:
space:
mode:
authorzlg <zlg@zlg.space>2012-11-29 14:44:25 -0600
committerzlg <zlg@zlg.space>2012-11-29 14:44:25 -0600
commitb6b22b5c5acbe317d7ad992b58169b0678e64a9a (patch)
treedf8e968e05d8fd85d88c5f1db6cda37fb152aa84 /1-20_detab.c
parentCorrect 1-13's chart heading (diff)
downloadknr-b6b22b5c5acbe317d7ad992b58169b0678e64a9a.tar.gz
knr-b6b22b5c5acbe317d7ad992b58169b0678e64a9a.tar.bz2
knr-b6b22b5c5acbe317d7ad992b58169b0678e64a9a.tar.xz
knr-b6b22b5c5acbe317d7ad992b58169b0678e64a9a.zip
Clean up 1-13 and 1-20, correct 1-21
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
Diffstat (limited to '1-20_detab.c')
-rw-r--r--1-20_detab.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/1-20_detab.c b/1-20_detab.c
index e1549e6..dc8f5b5 100644
--- a/1-20_detab.c
+++ b/1-20_detab.c
@@ -11,9 +11,8 @@
* worked with and it's not susceptible to scope. Though, in this simple
* program it really doesn't matter.
*
- * To be correct, this file should use the isprint() function to ensure that
- * 'column' only gets incremented when a printable character is being read. I'll
- * come back to this when I learn more of the stdlib.
+ * The "correct" solution uses the isprint() stdlib function, but it's not
+ * covered by this point in the book, so I did not use it.
*/
#define TABWIDTH 8