utils.h File Reference

Go to the source code of this file.

Functions

unsigned int trim_string (char *ins, char *outs)


Function Documentation

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.

Parameters:
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.
Returns:
Length of the output string

Definition at line 95 of file utils.c.


Generated on Tue Jul 27 01:28:56 2010 for testrunner-lite by  doxygen 1.5.6