fire demo, again from a1k0n

This commit is contained in:
Kevin Lange 2012-02-07 00:11:49 -06:00
parent e2dc01bed7
commit 4335ade9bc

9
userspace/fire.c Normal file
View File

@ -0,0 +1,9 @@
/* http://a1k0n.net/2007/08/24/obfuscated-c-fire.html */
void usleep(int i) {
for (unsigned int j = 0; j < 0xFFFFFF; ++j) {
__asm__ __volatile__("nop");
}
}
b[2080];main(j){for(;;){printf("\x1b[H");for(j=1;j<2080;j++)b[j]=j<
2000?(b[j+79]+b[j+80]+b[j]+b[j-1]+b[j+81])/5:rand()%4?0:512,j<1840?
putchar((j%80)==79?'\n':" .:*#$H@"[b[j]>>5]):0;usleep(20000);}}