Skip to content

Instantly share code, notes, and snippets.

View bradtgmurray's full-sized avatar

Brad Murray bradtgmurray

  • Beeper
  • Waterloo, Ontario
View GitHub Profile
char* it = "xxxxxxxxxxx";
if(it[0] == '.')
{
switch(it[1])
{
case '/':
it++;
//fall through
case '\0':
char* it = "xxxxxxxxxxx";
if(it[0] == '.' && (it[1] == '/' || it[1] == 0))
{
doSomething();
it += (it[1] == 0 ? 1 : 2);
}
char* it = "xxxxxxxxxxx";
if(it[0] == '.')
{
if(it[1] == '/')
{
doSomething();
it += 2;
}
else if (it[1] == 0)