This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Reset getopt()


Hello!

Which is the correct way to reset and reuse getopt()?

I have tried setting optind to 0 and 1 but it has not worked.

Sorry if this is not the place to ask this.

Thank you in advance. Regards!


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]