From 49031102f2b3cb36dc338487c039062ce84b5dd8 Mon Sep 17 00:00:00 2001 From: emma Date: Sun, 14 Jul 2024 03:17:21 -0600 Subject: [PATCH] npc(1): commenting --- src/npc.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/npc.c b/src/npc.c index d160523..34fb9ce 100644 --- a/src/npc.c +++ b/src/npc.c @@ -30,11 +30,8 @@ int usage(char *s) { int main(int argc, char *argv[]) { int c; - char showend; - char showtab; - - showend = 0; - showtab = 0; + char showend = 0; /* print a dollar sign before each newline */ + char showtab = 0; /* prints tab characters in caret notation */ if (argc > 0) { while ((c = getopt(argc, argv, "et")) != -1) { @@ -52,7 +49,7 @@ int main(int argc, char *argv[]) { if ((c & 0x80) != 0) { fputs("M-", stdout); } switch (c ^ 0x80) { /* 0b 1000 0000 */ - case 0x7f: fputs("^?", stdout); break; + case 0x7f: fputs("^?", stdout); break; /* delete character */ case '\n': if (showend) { putc('$', stdout); } default: if (c >= ' ' || c == '\n' || (!showtab && c == '\t')) {