Skip to content

Instantly share code, notes, and snippets.

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