char* qStrUnchar ( char *  str,
char  head,
char  tail 
)

Remove character from head and tail of the string.

Parameters:
str source string
head heading character
tail tailing character
Returns:
a pointer of source string if rsuccessful, otherewise returns NULL
Note:
This modify source string directly.
   char *str = strdup("   \"hello world\"   ");
   qStrTrim(str); // to remove white spaces
   qStrUnchar(str, '"', '"'); // to unquote

Definition at line 99 of file qString.c.


Generated on Mon Mar 26 07:00:51 2018 for JSOC_Documentation by  doxygen 1.5.7.1