Skip to content

Instantly share code, notes, and snippets.

@nikoncode
Last active December 30, 2015 22:49
Show Gist options
  • Select an option

  • Save nikoncode/7897016 to your computer and use it in GitHub Desktop.

Select an option

Save nikoncode/7897016 to your computer and use it in GitHub Desktop.
salo
while ((p=strchr(p,'+'))) {
char * substr = p;
char * minus = strchr(p, '-');
if (minus == 0) break;
while ((substr=strchr(substr,'B'))) {
if (substr < minus) {
c++;
substr++;
} else {
break;
}
}
p = minus;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment