diff options
author | epochqwert <epoch@hacking.allowed.org> | 2018-10-15 08:07:14 +0000 |
---|---|---|
committer | epochqwert <epoch@hacking.allowed.org> | 2018-10-15 08:07:14 +0000 |
commit | 61fa33424e49128ddca8ef679680882b04c96654 (patch) | |
tree | d821ca032c87f870dde6b6a416bb2ef6fffc2068 /urlunescape.c | |
parent | afdc9966f1bade4b99b7c938c6a684d75a12dff2 (diff) | |
download | uritools-61fa33424e49128ddca8ef679680882b04c96654.tar.gz uritools-61fa33424e49128ddca8ef679680882b04c96654.zip |
added urlescape and urlunescape
Diffstat (limited to 'urlunescape.c')
-rw-r--r-- | urlunescape.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/urlunescape.c b/urlunescape.c new file mode 100644 index 0000000..618cd64 --- /dev/null +++ b/urlunescape.c @@ -0,0 +1,12 @@ +#include <unistd.h> +#include "url.h" + +int main(int argc,char *argv[]) { + int len; + for(argv++,argc--;argc;argc--,argv++) { + len=urlunescape(*argv,*argv); + write(1,*argv,len); + if(argc-1) write(1," ",1); + } + return 0; +} |