no-op.c is an useless shell filter
This commit is contained in:
parent
7025a58cb0
commit
8874dfb569
18
code/no-op.c
Normal file
18
code/no-op.c
Normal 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…
Reference in New Issue
Block a user