跳到主要内容

av_strndup

搜索

函数 av_strndup 

源代码
pub unsafe extern "C" fn av_strndup(
    s: *const c_char,
    len: usize,
) -> *mut c_char
展开描述

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