|
Tor 0.4.9.3-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.
Definition at line 30 of file cstring.c.
Referenced by kvline_parse(), parse_config_line_from_str_verbose(), and port_cfg_line_extract_addrport().