[][src]Function ffmpeg_sys_next::av_get_token

pub unsafe extern "C" fn av_get_token(
    buf: *mut *const c_char,
    term: *const c_char
) -> *mut c_char

Unescape the given string until a non escaped terminating char, and return the token corresponding to the unescaped string.

The normal \ and ' escaping is supported. Leading and trailing whitespaces are removed, unless they are escaped with '' or are enclosed between ''.

@param buf the buffer to parse, buf will be updated to point to the terminating char @param term a 0-terminated list of terminating chars @return the malloced unescaped string, which must be av_freed by the user, NULL in case of allocation failure