Skip to content

Instantly share code, notes, and snippets.

@mitchellh
Created February 7, 2009 23:08
Show Gist options
  • Save mitchellh/60088 to your computer and use it in GitHub Desktop.
Save mitchellh/60088 to your computer and use it in GitHub Desktop.
int lastEmptyString(char **strings, int n) {
if (n == 0) return -1;
if (!strcmp(strings[0], "")) return 0;
return 1 + lastEmptyString(strings + 1, n - 1);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment