If any of the characters in illegal_characters or the NUL
character appears as an escaped character in escaped_string, then
that is an error and null will be returned. This is useful if you
want to avoid for instance having a slash being expanded in an
escaped path element, which might confuse pathname handling.
Parameters
escaped_string: string
an escaped string to be unescaped.
Optionalillegal_characters: string
a string of illegal characters not to be allowed, or null.
Returns string
an unescaped version of escaped_string. The returned string should be freed when no longer needed.
Unescapes a whole escaped string.
If any of the characters in
illegal_charactersor the NUL character appears as an escaped character inescaped_string, then that is an error andnullwill be returned. This is useful if you want to avoid for instance having a slash being expanded in an escaped path element, which might confuse pathname handling.