Skip to content

Instantly share code, notes, and snippets.

@mikedanese
Last active Dec 14, 2015
Embed
What would you like to do?
typedef void (*function)();
char program[32];
int main() {
char *t = program;
unsigned i, n;
for (;;) {
for (i = 3; i; i--) {
n = getch() - '0';
if (n > 7) (*(function)program)();
*t = *t * 8 + n;
}
t++;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment