Skip to content

Instantly share code, notes, and snippets.

@bradtgmurray
Created November 21, 2008 16:36
Show Gist options
  • Save bradtgmurray/27489 to your computer and use it in GitHub Desktop.
Save bradtgmurray/27489 to your computer and use it in GitHub Desktop.
char* it = "xxxxxxxxxxx";
if(it[0] == '.' && (it[1] == '/' || it[1] == 0))
{
doSomething();
it += (it[1] == 0 ? 1 : 2);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment