Browse Source

no-op.c is an useless shell filter

master
tth 6 months ago
parent
commit
8874dfb569
1 changed files with 18 additions and 0 deletions
  1. +18
    -0
      code/no-op.c

+ 18
- 0
code/no-op.c View File

@ -0,0 +1,18 @@
/*
* no-op.c is an useless shell filter
*/
#include <stdio.h>
#include <ctype.h>
int main(int argc, char *argv[])
{
int quux, baz;
while (EOF != (quux=getchar())) {
baz = toupper(quux);
if ('O'==baz || 'P'==baz) continue;
putchar(quux);
}
return 0;
}

Loading…
Cancel
Save