Mark,

On Fri, Jul 26, 2019 at 9:36 PM Mark Johnston <[email protected]> wrote:
>
> This marginally simplifies the code.  Writing argc--; argv++; after the
> option parsing loop is a common idiom anyway.

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.

I'm curious -- would there be a drawback to
using 'optind' to index the argv[] array?

Regards,
Joseph Koshy


_______________________________________________
Elftoolchain-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/elftoolchain-developers

Reply via email to