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]>

Reply via email to