summaryrefslogtreecommitdiff
path: root/ch01/ex13-histogram.c
diff options
context:
space:
mode:
Diffstat (limited to 'ch01/ex13-histogram.c')
-rw-r--r--ch01/ex13-histogram.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ch01/ex13-histogram.c b/ch01/ex13-histogram.c
index fbccb2a..47ed574 100644
--- a/ch01/ex13-histogram.c
+++ b/ch01/ex13-histogram.c
@@ -3,6 +3,8 @@
#define IN 1 /* inside a word */
#define OUT 0 /* outside a word */
+#define INDICATOR_BAR '#'
+
/* print a histogram of word lengths */
int main()
{
@@ -46,7 +48,7 @@ int main()
else
printf(" %2d: ", i + 1);
for (j = 0; j < nlen[i]; ++j)
- putchar('#');
+ putchar(INDICATOR_BAR);
putchar('\n');
}
}