Skip to content

Instantly share code, notes, and snippets.

@NakanishiTetsuhiro
Created December 8, 2016 06:57
Show Gist options
  • Select an option

  • Save NakanishiTetsuhiro/e588c01b2861512e3bef3e481f42112b to your computer and use it in GitHub Desktop.

Select an option

Save NakanishiTetsuhiro/e588c01b2861512e3bef3e481f42112b to your computer and use it in GitHub Desktop.
#include <stdio.h>
#include <unistd.h>
int main(void) {
while(1){
printf(" -\r");
usleep(100000);
fflush(stdout);
printf(" \\\r");
usleep(100000);
fflush(stdout);
printf(" |\r");
usleep(100000);
fflush(stdout);
printf(" /\r");
usleep(100000);
fflush(stdout);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment