This is the mail archive of the glibc-bugs@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]

[Bug libc/2679] getopt and optind (when called with different arguments)


------- Additional Comments From bettini at dsi dot unifi dot it  2006-05-25 07:12 -------
(In reply to comment #1)
> What "other implementations of getopt_long" do is irrelevant.  This is a GNU
> extension and whatever others implemented is a derivate.  File bugs with those
> implementations.
> 
> Is see no problem with the existing code.  Just use optind the way it is
> required.  If you think some documentation is missing provide a patch.

All I'm saying is that, as I understand, the standard requires optind to be 1 at
the beginning; I was wondering why not taking (optind == 1) as the
initialization condition...  Is there a reason why using (optind == 0)?

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=2679

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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