summaryrefslogtreecommitdiff
path: root/lib/escape.c
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2008-10-08 01:17:51 +0000
committerDan Fandrich <dan@coneharvesters.com>2008-10-08 01:17:51 +0000
commit95456b8e78d3dcee0c1d79760bcb2dfcb0d7db09 (patch)
treeeb6bb6a59b6e7d9d4f7b0bd53b47cb11aed270e4 /lib/escape.c
parent79fc481a2b2151421752ffd6dba01c30a0dc5302 (diff)
downloadcurl-95456b8e78d3dcee0c1d79760bcb2dfcb0d7db09.tar.gz
Added const to some pointer variables
Diffstat (limited to 'lib/escape.c')
-rw-r--r--lib/escape.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/escape.c b/lib/escape.c
index 24134c8e8..626581819 100644
--- a/lib/escape.c
+++ b/lib/escape.c
@@ -138,6 +138,12 @@ char *curl_easy_escape(CURL *handle, const char *string, int inlength)
return ns;
}
+/*
+ * Unescapes the given URL escaped string of given length. Returns a
+ * pointer to a malloced string with length given in *olen.
+ * If length == 0, the length is assumed to be strlen(string).
+ * If olen == NULL, no output length is stored.
+ */
char *curl_easy_unescape(CURL *handle, const char *string, int length,
int *olen)
{