Skip to content

Instantly share code, notes, and snippets.

@shinhirota
Last active September 7, 2015 11:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shinhirota/2fb26fe10598364acb2c to your computer and use it in GitHub Desktop.
Save shinhirota/2fb26fe10598364acb2c to your computer and use it in GitHub Desktop.
int find_something () {
int i, j;
for (i = 0; i < IMAX; i++) {
for (j = 0; j < JMAX; j++) {
int is_found = find_at(i, j);
if (is_found) goto EXIT_LOOP;
}
}
EXIT_LOOP:
return i*JMAX+j;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment