Tor
0.4.7.0-alpha-dev
|
#include <stddef.h>
Go to the source code of this file.
Functions | |
const char * | unescape_string (const char *s, char **result, size_t *size_out) |
const char* unescape_string | ( | const char * | s, |
char ** | result, | ||
size_t * | size_out | ||
) |
Given a c-style double-quoted escaped string in s, extract and decode its contents into a newly allocated string. On success, assign this string to *result, assign its length to size_out (if provided), and return a pointer to the position in s immediately after the string. On failure, return NULL.