Last active
April 13, 2016 20:08
-
-
Save icebreaker/205759fdf0c61f9d9f7ced311aaee347 to your computer and use it in GitHub Desktop.
nyan.c - IOCCC warm-up
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <unistd.h> | |
| int main(){const char *O_o[]=/*msz*/{ | |
| " ,------,\n" "v| /\\__/\\ \n" | |
| " |__( ^ w ^) \n" " \" \"\n", | |
| " ,------,\n" | |
| "~| /\\__/\\\n" | |
| " |___( ^ w ^) \n" | |
| " \" \"\n", | |
| " ,------,\n" "^| /\\__/\\\n" | |
| " |___( ^ w ^) \n" " \" \"\n" }; | |
| int i=1;for(;;){printf("%s\x1b[4A", | |
| O_o[(i=(i+1)%3)]);usleep(200000);}} |
Author
icebreaker
commented
Apr 13, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment