MCPcopy Index your code
hub / github.com/MapServer/MapServer / msStringTrimBlanks

Function msStringTrimBlanks

mapstring.c:488–499  ·  view source on GitHub ↗

------------------------------------------------------------------------------- */ Trims trailing blanks from a string */ ------------------------------------------------------------------------------- */

Source from the content-addressed store, hash-verified

486/* Trims trailing blanks from a string */
487/* ------------------------------------------------------------------------------- */
488void msStringTrimBlanks(char *string)
489{
490 int i,n;
491
492 n = strlen(string);
493 for(i=n-1;i>=0;i--) { /* step backwards through the string */
494 if(string[i] != ' ') {
495 string[i+1] = '\0';
496 return;
497 }
498 }
499}
500
501/* ------------------------------------------------------------------------------- */
502/* Trims end-of-line marker from a string */

Callers 4

msPostGISReadShapeFunction · 0.85
processLineFunction · 0.85
msWMSSetTimePatternFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected