Public/tip & tech

url decoding

quantapia 2009. 5. 12. 17:56

쿼리 디코딩용

 

#include
#include


int main()
{

    int     size;
    char    *ret;
    char    buffer[1024];

    while(fgets(buffer,1024,stdin) != NULL)
    {
        size = strlen(buffer);
        ret = curl_unescape(buffer,size);
        printf("%s\n",ret);
    }
}

 

http://curl.netmirror.org/libcurl/c/