Skip to content

Instantly share code, notes, and snippets.

@jorgenschaefer
Created May 6, 2017 11:44
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 jorgenschaefer/6e0b132a00060f142c28b8bec45a646f to your computer and use it in GitHub Desktop.
Save jorgenschaefer/6e0b132a00060f142c28b8bec45a646f to your computer and use it in GitHub Desktop.
Serious C code
// Remove leading spaces
char *dst = (equals + 1);
char *src = dst;
while (*src++ == ' ')
;
src--;
while((*dst++ = *src++))
;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment