libavformat/urldecode.c File Reference

#include <ctype.h>
#include <string.h>
#include "libavutil/mem.h"
#include "libavutil/avstring.h"
#include "urldecode.h"

Go to the source code of this file.

Functions

char * ff_urldecode (const char *url)
 Decodes an URL from its percent-encoded form back into normal representation.


Function Documentation

char* ff_urldecode ( const char *  url  ) 

Decodes an URL from its percent-encoded form back into normal representation.

This function returns the decoded URL in a string. The URL to be decoded does not necessarily have to be encoded but in that case the original string is duplicated.

Parameters:
url a string to be decoded.
Returns:
new string with the URL decoded or NULL if decoding failed. Note that the returned string should be explicitly freed when not used anymore.

Definition at line 36 of file urldecode.c.

Referenced by ff_http_auth_create_response().


Generated on Fri Oct 26 02:50:11 2012 for FFmpeg by  doxygen 1.5.8