aboutsummaryrefslogtreecommitdiffstats
path: root/urimatchpairs.c
diff options
context:
space:
mode:
Diffstat (limited to 'urimatchpairs.c')
-rw-r--r--urimatchpairs.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/urimatchpairs.c b/urimatchpairs.c
new file mode 100644
index 0000000..6da5d92
--- /dev/null
+++ b/urimatchpairs.c
@@ -0,0 +1,23 @@
+#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:
+ }
+ 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]);
+ }
+ }
+}