Function rsmpeg::ffi::av_strndup[][src]

pub unsafe extern "C" fn av_strndup(s: *const i8, len: u64) -> *mut i8
Expand description

Duplicate a substring of a string.

@param s String to be duplicated @param len Maximum length of the resulting string (not counting the terminating byte) @return Pointer to a newly-allocated string containing a substring of s or NULL if the string cannot be allocated