Good $daytime,
> Date: Tue, 25 Aug 1998 23:11:29 +0000 (GMT)
> From: James <[EMAIL PROTECTED]>
> To: Linux C Programming List <[EMAIL PROTECTED]>
> Subject: usleep()
> why when i run the following does it wait 5 seconds then display
> .\.\.\.\.\ instead of displaying . [wait 1 second] \ . [wait 1 second]...
> /* start */
> #include <stdio.h>
> #include <unistd.h>
> int main()
> {
> int c;
> for (c = 0; c < 5; c++) {
> printf (".");
fflush(stdout);
> sleep (1);
> printf ("\\");
> }
> return 0;
> }
> /* end */
This should do the trick.
Regards,
Willy.
--
"No easy hope or lies | Vitaly "Willy the Pooh" Fedrushkov
Shall bring us to our goal, | Information Technology Division
But iron sacrifice | Chelyabinsk State University
Of Body, Will and Soul." | mailto:[EMAIL PROTECTED] +7 3512 156770
R.Kipling | http://www.csu.ac.ru/~willy VVF1-RIPE