bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cat.c


From: Eric Blake
Subject: Re: cat.c
Date: Wed, 01 Apr 2009 20:14:25 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.21) Gecko/20090302 Thunderbird/2.0.0.21 Mnenhy/0.7.6.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to maxime on 4/1/2009 4:40 PM:
> ... many understandable lines ...

... including some context you skipped at line 676:

>   do
>     {
...
>     }
>  while (++argind < argc);

In other words, this is not a body-less while loop that can rewritten as
an if statement, contrary to the assumption you made in your proposals.

> 
> plz say me why U write a loop to do that...

Because the do loop is the best construct for the problem at hand.  [as a
note of netiquette, it is nicer to spell out 'you' than to abbreviate to
the non-English 'U']

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAknUH4EACgkQ84KuGfSFAYARCQCeMc0vJJiD6ZUbDXFSKm9jzqTe
3Z4AnjMfVYQZubeO4Da86nbV6AVq1ihb
=b5NC
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]