[][src]Function stainless_ffmpeg_sys::av_strnstr

pub unsafe extern "C" fn av_strnstr(
    haystack: *const c_char,
    needle: *const c_char,
    hay_length: size_t
) -> *mut c_char

Locate the first occurrence of the string needle in the string haystack where not more than hay_length characters are searched. A zero-length string needle is considered to match at the start of haystack.

This function is a length-limited version of the standard strstr().

@param haystack string to search in @param needle string to search for @param hay_length length of string to search in @return pointer to the located match within haystack or a null pointer if no match