From: Joseph K. <jk...@us...> - 2019-07-30 08:08:56
|
Mark, On Fri, Jul 26, 2019 at 9:36 PM Mark Johnston <ma...@fr...> 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 |