[FFmpeg-devel] [PATCH] Add av_stristr() function
Måns Rullgård
mans
Mon Mar 8 23:10:07 CET 2010
Michael Niedermayer <michaelni at gmx.at> writes:
> On Sat, Mar 06, 2010 at 01:29:57PM +0000, Mans Rullgard wrote:
>> This is a case-insensitive version of strstr().
> [...]
>>
>> /**
>> + * Locate the first case-independent occurrence in the string s1 of
>> + * the string s2. A zero-length string s2 is considered to match at
>> + * the start of s1.
>> + *
>> + * This function is a case-insensitive version of the standard strstr().
>> + *
>> + * @param s1 string to search in
>> + * @param s2 string to search for
>> + * @return pointer to the located match within s1 or a null pointer if no match
>> + */
>
> id replace s1/s2 with needle and haystack
I used the same names as the standard definition of strstr(), but I
can of course change them.
> ok otherwise
This has already been committed. It seemed safe, and it fixed some
real build failures.
--
M?ns Rullg?rd
mans at mansr.com
More information about the ffmpeg-devel
mailing list