strcasestr() patch proposal

Joel Sherrill joel.sherrill@oarcorp.com
Thu Jun 7 17:04:00 GMT 2007


Olivier Langlois wrote:
> Corinna
>   
>> You can't do that, except the original LGPLed function was also written
>> by you, which it isn't.
>>     
>
> I have contacted the original authors about the issue. If I get their
> contentment then would that be ok?
>   
>>>  If not, how can I workaround the issue?
>>>       
>> You can write the function new from scratch, or you take another base
>> implementation which is BSD licensed or something comparable.
>>
>>     
> Ok, thanks I will explore this possibility but if it requires too much work,
> I might just drop my contribution.
>
>   
I don't think it's that much work. Here's a pointer to the latest version in
FreeBSD's CVS Repository.

http://www.freebsd.org/cgi/cvsweb.cgi/src/lib/libc/string/strcasestr.c?rev=1.4

It isn't as clever as the glibc version but it works. :)

It should be easy to cut this version into newlib.

--joel
> Thank you for your help,
> Olivier Langlois
>
>
>   



More information about the Newlib mailing list