maxime wrote:

> Hi,
> 
> in the coreutils source of cat

[snip]

> ... many understandable lines ...
>   while (++argind < argc);
> ... some lines...
> 
> coreutil 7.2
> file cat.c
> line 776
> 
> I realy don't understand why U use a while loop in this case...

It is the end of a do...while loop.  The loop executes at least once before the 
condition is evaluated.  It is of the form:

do
{
...
}
while(condition);

You are looking at the while(condition); as a single while loop, which it is 
not.

Regards

-Steve



      


_______________________________________________
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to