Go to the source code of this file.
Functions | |
unsigned int | trim_string (char *ins, char *outs) |
unsigned int trim_string | ( | char * | ins, | |
char * | outs | |||
) |
Trim string of whitespace and control characters. Remove unwanted whitespace, linefeeds etc. (using isspace()) from the beginning and end of the string (until the first/last non-whitespace character) and control characters (using iscntrl()) from the middle.
ins | The input string. Must not be null. | |
outs | The output string. Must be at least as long as the input string and not null. |