[PATCH] substring matching in std

Poul-Henning Kamp phk at phk.freebsd.dk
Mon Sep 22 09:46:30 CEST 2014

In message <63053.1411369799 at critter.freebsd.dk>, "Poul-Henning Kamp" writes:
>In message <CAOXZevBmLJ840-BHgUS5riFs+RHTj4tbr3geFoXVhCu0KW_ryw at mail.gmail.com>
>, Per Buer writes:
>>Right. Renamed to strstr and returns the substring. The use is the more or
>>less the same.
>Looks good, but two questions:
>A) Should it use strcasestr() ?
>B) should we have both std.strstr() an std.strcasestr() ?
>Commit when you agree on the answer and have tested the resulting patch...

Ohh, and:  It needs to test for NULL inputs...

Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.

More information about the varnish-dev mailing list