[][src]Function transmission_sys::tr_parseNumberRange

pub unsafe extern "C" fn tr_parseNumberRange(
    str: *const c_char,
    str_len: usize,
    setmeCount: *mut c_int
) -> *mut c_int

@brief Given a string like "1-4" or "1-4,6,9,14-51", this returns a newly-allocated array of all the integers in the set. @return a newly-allocated array of integers that must be freed with tr_free(), or NULL if a fragment of the string can't be parsed.

For example, "5-8" will return [ 5, 6, 7, 8 ] and setmeCount will be 4.