0
when I call getopt function 2 times sequentially, first time arguments are read properly next time the optind value set to the previous number of arguments and reading the arguments in the current pattern from different optind but not '1'
eg:
char *my_args[] = {"my_command","-vd","-nA","-i0","...