getopt_long
Jeff Johnston
jjohnstn@redhat.com
Wed Jan 4 21:24:00 GMT 2006
Gregory Pietsch wrote:
> Shaun Jackman wrote:
>
>> After some cursory testing, I can say, "Works for me!" Can this
>> getopt_long implementation be added to newlib?
>>
Done, with modifications. In addition to the changes Shaun posted, I
had to modify the header file to make it compile (obviously Shaun did
this locally). I removed the flag check for including getopt.h as this
should be handled inside the header file. I also modified
getopt_internal to return EOF when argc == 0 or argv == NULL (simple
checks). This matched the behavior of glibc as opposed to returning '?'.
Thanks,
-- Jeff J.
>>
> Go right ahead and add it. -- Gregory Pietsch
>
>> Cheers,
>> Shaun
>>
>> 2005/11/28, Gregory Pietsch <gpietsch@comcast.net>:
>>
>>
>>> Shaun Jackman was asking about getopt_long, so I volunteered my version
>>> that I sent to comp.lang.c about 2002 or so.
>>>
>>> Jeff Johnston asked me to post this to the list so that everyone can see
>>> them and pick them apart like a Thanksgiving turkey. I don't care, as I
>>> wrote this about eight years ago.
>>>
>>> Gregory Pietsch
>>>
>>
>>
>>
>>
>>
>
>
More information about the Newlib
mailing list