Skip to content

Instantly share code, notes, and snippets.

@davidglezz
Created November 4, 2013 16:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidglezz/7304955 to your computer and use it in GitHub Desktop.
Save davidglezz/7304955 to your computer and use it in GitHub Desktop.
This function remove whitespaces from the beginning.
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