Skip to content

Instantly share code, notes, and snippets.

@joshkunz
Last active December 14, 2015 02:39
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 joshkunz/5015505 to your computer and use it in GitHub Desktop.
Save joshkunz/5015505 to your computer and use it in GitHub Desktop.
#include <stdio.h>
char * space = "abcdefghijklmnopqrstuvwxyz23456789";
int main(){
unsigned int total = 0;
char * end = space+34;
char *loop1, *loop2, *loop3;
loop1 = space;
for (; loop1 < end; loop1++) {
loop2 = space;
for (; loop2 < end; loop2++) {
loop3 = space;
for (; loop3 < end; loop3++) {
total++;
//printf("%c%c%c\n", *loop1, *loop2, *loop3);
}
}
}
printf("%u ids found.\n", total);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment