summaryrefslogtreecommitdiff
path: root/uriunescape.c
diff options
context:
space:
mode:
authorepoch <epoch@hacking.allowed.org>2019-04-20 05:32:27 -0500
committerepoch <epoch@hacking.allowed.org>2019-04-20 05:32:27 -0500
commit6f402e2d2f052972886712f60d592684c8671982 (patch)
tree47a09324bd3c5e577ec5b7059bd6c8834bead115 /uriunescape.c
parentd42135919f480c8bba4ca1f043fbabf44dac708f (diff)
downloaduritools-6f402e2d2f052972886712f60d592684c8671982.tar.gz
uritools-6f402e2d2f052972886712f60d592684c8671982.zip
rebased on an old copy of this repo. renamed everything. rewrote the uri parser. added uricmp. wew.
Diffstat (limited to 'uriunescape.c')
-rw-r--r--uriunescape.c12
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;
+}