diff options
Diffstat (limited to 'uriunescape.c')
-rw-r--r-- | uriunescape.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/uriunescape.c b/uriunescape.c new file mode 100644 index 0000000..aafc6ea --- /dev/null +++ b/uriunescape.c @@ -0,0 +1,12 @@ +#include "uri.h" +#include <unistd.h> + +int main(int argc,char *argv[]) { + int len; + for(argv++,argc--;argc;argc--,argv++) { + len=uriunescape(*argv,*argv); + write(1,*argv,len); + if(argc-1) write(1," ",1); + } + return 0; +} |