$Revision: 1.3 $
string utilities (ut).
Status: NOT REVUED, NOT TESTED
Included Files
Preprocessor definitions
#define SPACE 0
#define WORD 1
void
ut_string_chop removes trailing whitespaces from the string, replacing
them with '\0' characters.
So it modifies the source string.
void ut_string_chop ( char* input )
- char* input
- source string
char *
ut_string_compress removes leading/trailing whitespaces and compresses
multiple whitespaces to one. The result is an allocated
string and must be freed.
char* ut_string_compress ( char* input )
- char* input
- source string