From 76a7bb252fbd0b92340893f08a765ee25f0c06d5 Mon Sep 17 00:00:00 2001 From: hjp Date: Sat, 12 Jul 1997 15:17:26 +0000 Subject: [PATCH] Added decimal number in output, fitted everything into < 80 chars per line again. --- chartab/chartab.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/chartab/chartab.c b/chartab/chartab.c index 3dbd2c2..066d5c3 100644 --- a/chartab/chartab.c +++ b/chartab/chartab.c @@ -1,8 +1,10 @@ +#include + int main (int argc, char **argv) { int i; for (i = 0; i < 256; i++) { - printf ("%x %o %c\t", i, i, i); - if (i % 8 == 7) printf ("\n"); + printf ("%x %d %o %c\t", i, i, i, i); + if (i % 4 == 3) printf ("\n"); } return 0; }