This is the mail archive of the newlib@sourceware.org mailing list for the newlib 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]

RE: [PATCH] getopt: Bug fix. Initialize optind


On 17 July 2006 23:58, Shaun Jackman wrote:

> On 7/7/06, Shaun Jackman <sjackman@gmail> wrote:
>> If getopt is called with optind == 0 and argc == 1, the EOF case is
>> not detected. optind should be initialized before testing for EOF.

> 
> Comments?

  :)  How about a testcase?


    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


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