model_server/els/src/str_utils.cxx
/* strip leading and trailing spaces. Return a pointer to the first not 
   space char or NULL if from is NULL */
strip leading and trailing spaces. Return a pointer to the first not
space char or NULL if from is NULL
strip leading and trailing spaces . Return a pointer to the first not space char or NULL if from is NULL
char* strip_spaces(char* from)
{
    if (!from) return NULL;
    while (isspace(*from))
	++from;
    if(*from) {
      char* end = from + strlen(from) - 1;
      while (isspace(*end))
	--end;
      *(end + 1) = '\0';
    }
    return from;
}
char * strip_spaces ( char * from ) { if ( ! from ) return NULL ; while ( isspace ( * from ) ) ++ from ; if ( * from ) { char * end = from + strlen ( from ) - 1 ; while ( isspace ( * end ) ) -- end ; * ( end + 1 ) = ' \0 ' ; } return from ; }
strip leading and trailing spaces.
strip leading and trailing spaces .