ocssw
V2022
|
trimBlanks.c File Reference
Include dependency graph for trimBlanks.c:
Go to the source code of this file.
Functions | |
void | trimBlanks (char *str) |
char * | trimBlanksDup (const char *str) |
Function Documentation
◆ trimBlanks()
void trimBlanks | ( | char * | str | ) |
trim white space off of beginning and end of string.
- Parameters
-
str string to modify
Definition at line 10 of file trimBlanks.c.
◆ trimBlanksDup()
char* trimBlanksDup | ( | const char * | str | ) |
Allocate a string without beginning and ending white space.
- Parameters
-
str string to use as source (left unmodified)
- Returns
- pointer to newly allocated string without whitespace on ends
Definition at line 58 of file trimBlanks.c.