From 61fa33424e49128ddca8ef679680882b04c96654 Mon Sep 17 00:00:00 2001 From: epochqwert Date: Mon, 15 Oct 2018 08:07:14 +0000 Subject: added urlescape and urlunescape --- urlunescape.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 urlunescape.c (limited to 'urlunescape.c') 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 +#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; +} -- cgit v1.2.3