remove quotes from a string
#include <suplib/str.h>char *unquote(char *string);
char *string
- the string to unquote
unquote
removes pairs of quotes from a string. The first
quote need not be at the beginning of the string. It makes the
changes in-place. For example, ‘foo" "bar’ is turned into
‘foo bar’, just like in a UNIX shell. It can deal with either
single (forward or backward) or double quotes, and understands
escaped characters (with ‘\’ as the escape prefix).
It returns a pointer to the original string upon success, NULL
if the quotes were unbalanced or an escape prefix occurred without
a character to escape.
Diab Jerius