aboutsummaryrefslogtreecommitdiff
path: root/ch1/1-21_entab.c
diff options
context:
space:
mode:
Diffstat (limited to 'ch1/1-21_entab.c')
-rw-r--r--ch1/1-21_entab.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/ch1/1-21_entab.c b/ch1/1-21_entab.c
index 6037a14..2833520 100644
--- a/ch1/1-21_entab.c
+++ b/ch1/1-21_entab.c
@@ -1,15 +1,14 @@
#include <stdio.h>
/* The C Programming Language: 2nd Edition
- * Exercise 1-21:
- * "Write a program `entab` that replaces strings of blanks by the minimum
- * number of tabs and blanks to achieve the same spacing. Use the same tab
- * stops as for `detab`. When either a tab or a single blank would suffice to
- * reach a tab stop, which should be given preference?"
+ *
+ * Exercise 1-21: Write a program `entab` that replaces strings of blanks by
+ * the minimum number of tabs and blanks to achieve the same spacing. Use the
+ * same tab stops as for `detab`. When either a tab or a single blank would
+ * suffice to reach a tab stop, which should be given preference?
*
* Answer: A blank. A tab character that comes after (tabstop - 1) blanks makes
* little-to-no sense and could mess up alignment in some environments.
- *
*/
#define TABWIDTH 8