moved here from the newlib branch

This commit is contained in:
Daniel Stenberg
2000-05-22 14:12:12 +00:00
parent fb9d1ff00f
commit 96dde76b99
54 changed files with 2824 additions and 2580 deletions

View File

@@ -81,16 +81,15 @@ char *curl_escape(char *string)
return ns;
}
char *curl_unescape(char *string)
char *curl_unescape(char *string, int length)
{
int alloc = strlen(string)+1;
int alloc = (length?length:strlen(string))+1;
char *ns = malloc(alloc);
unsigned char in;
int index=0;
int hex;
while(*string) {
while(--alloc) {
in = *string;
if('+' == in)
in = ' ';