blob: 1e8b823b367804d95a95b1eae650584dae8ceb9a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#include <stdio.h>
int main(int argc,char *argv[]) {
int i,j;
for(i=1;i<argc;i+=2) {
switch(argv[i][0]) {
case '-': j=1; break;
case 'n': j=1; printf("%s\n",argv[i]); i--; continue;
case 'r': j=1; printf("r"); break;
default: break;
}
switch(argv[i][j]) {
case 's':
case 'u':
case 'k':
case 'd':
case 'P':
case 'p':
case 'q':
case 'f': printf("%c %s\n",argv[i][j],argv[i+1]);
default: break;
}
}
}
|