All pastes #82556 Raw Edit

g4

public text v1 · immutable
·published 2006-07-08 17:48 UTC
rendered paste body
//some random shit
//didn't work as i planned it. 

#include <stdio.h>
#include <unistd.h>

int usleep (__useconds_t __useconds);

static void Sleep(unsigned int n)
{
        usleep(n * 1000);
}

int main()
{
        /* char *p,foo[] = "-\\|/"; */
        char *p,foo[] = ".oO0Oo";
        while (1)
        {
                for (p = foo; *p; p++)
                {
                        fflush(stdout);
                        fprintf(stdout, "%c", *p);
                        /* Sleep(40); */
                        Sleep(70);
                }
        }
        return 0;
}