holotko wrote:
> James wrote:
>
> > 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>
> >
> More like the latter, each time through the loop it will print "." then a 1 second
>pause, then print
>
Sorry, I misunderstood your question. I thought you were asking which would it do
rather than "why is
does".As others have already pointed out it has to do with the buffering done by
printf(). Sorry.
/John <[EMAIL PROTECTED]>
> "\\"...
>
> --
> email: [EMAIL PROTECTED]
> Local mailserver , remote
>
> Abolish capital punishment throughout the world!
--
email: [EMAIL PROTECTED]
Local mailserver , remote
Abolish capital punishment throughout the world!