Previous: , Up: microhttpd-util   [Contents][Index]


13.2 Unescape strings

Function: size_t MHD_http_unescape (char *val)

Process escape sequences (’%HH’) Updates val in place; the result should be UTF-8 encoded and cannot be larger than the input. The result must also still be 0-terminated.

val

value to unescape (modified in the process), must be a 0-terminated UTF-8 string.

Returns length of the resulting val (strlen(val) may be shorter afterwards due to elimination of escape sequences).