cstring.h File Reference

Header for cstring.c. More...

#include <stddef.h>

Go to the source code of this file.


const char * unescape_string (const char *s, char **result, size_t *size_out)

Detailed Description

Header for cstring.c.

Definition in file cstring.h.

Function Documentation

◆ unescape_string()

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.