On Tue, 30 Jul 2019 at 04:09, Joseph Koshy via Elftoolchain-developers
<elftoolchain-developers@lists.sourceforge.net> wrote:
>
> The option handling code in elfcopy(1) seems
> patterned after the getopt(3) usage example in
> the POSIX standard:
>
> https://pubs.opengroup.org/onlinepubs/9699919799/functions/getopt.html.

The author of that example may have chosen to use optind to
demonstrate its existence and use though. It doesn't much matter, but
I find the "discard processed options" form somewhat more clear.


_______________________________________________
Elftoolchain-developers mailing list
Elftoolchain-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/elftoolchain-developers

Reply via email to