Created
November 4, 2013 16:12
-
-
Save davidglezz/7304955 to your computer and use it in GitHub Desktop.
This function remove whitespaces from the beginning.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void StrTrimLeft(char *source, char *dest) | |
{ | |
int nIndex = 0; | |
while (source[nIndex] == ' ') | |
nIndex++; | |
strcpy(dest, &source[nIndex]); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment