[FFmpeg-devel] [PATCH] Add av_stristr() function

Michael Niedermayer michaelni
Mon Mar 8 22:34:26 CET 2010


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 
ok otherwise


[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The real ebay dictionary, page 2
"100% positive feedback" - "All either got their money back or didnt complain"
"Best seller ever, very honest" - "Seller refunded buyer after failed scam"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100308/00d7216c/attachment.pgp>



More information about the ffmpeg-devel mailing list