4d1e38588ee18350611bbe576a7ceb91d5812e65 angie Tue Apr 16 14:01:29 2019 -0700 Added const to declarations of some char * function params that are not modified, so I can use const in calling routines. diff --git src/inc/common.h src/inc/common.h index 5b1fa5b..6d4018a 100644 --- src/inc/common.h +++ src/inc/common.h @@ -981,34 +981,34 @@ int chopByChar(char *in, char chopper, char *outArray[], int outSize); /* Chop based on a single character. */ #define chopTabs(string, words) chopByChar(string, '\t', words, ArraySize(words)) /* Chop string by tabs. */ #define chopCommas(string, words) chopByChar(string, ',', words, ArraySize(words)) /* Chop string by commas. */ char *skipBeyondDelimit(char *s,char delimit); /* Returns NULL or pointer to first char beyond one (or more contiguous) delimit char. If delimit is ' ' then skips beyond first patch of whitespace. */ -char *skipLeadingSpaces(char *s); +char *skipLeadingSpaces(const char *s); /* Return first white space or NULL if none.. */ -char *skipToSpaces(char *s); +char *skipToSpaces(const char *s); /* Return first white space. */ int eraseTrailingSpaces(char *s); /* Replace trailing white space with zeroes. Returns number of * spaces erased. */ void eraseWhiteSpace(char *s); /* Remove white space from a string */ void eraseNonDigits(char *s); /* Remove any chars leaving digits only */ void eraseNonAlphaNum(char *s); /* Remove non-alphanumeric chars from string */