OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
trimBlanks.c File Reference
#include <genutils.h>
#include <ctype.h>
#include <string.h>
#include <stdlib.h>
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
strstring 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
strstring to use as source (left unmodified)
Returns
pointer to newly allocated string without whitespace on ends

Definition at line 58 of file trimBlanks.c.