James wrote: > why when i run the following does it wait 5 seconds then display > .\.\.\.\.\ instead of displaying . [wait 1 second] \ . [wait 1 second]... Because stdout is line-buffered by default. Either add fflush(stdout) before the sleep() or use setbuf(stdout, NULL) to make stdout unbuffered. -- Glynn Clements <[EMAIL PROTECTED]>
- usleep() James
- Re: usleep() Glynn Clements
- Re: usleep() Augusto Cesar
- Re: usleep() Vitaly Fedrushkov
- Re: usleep() Andrea Arcangeli
- Re: usleep() holotko
- Re: usleep() holotko