pub unsafe extern "C" fn ff_int_from_list_or_default(
ctx: *mut c_void,
val_name: *const c_char,
val: c_int,
array_valid_values: *const c_int,
default_value: c_int,
) -> c_int
Expand description
Check if a value is in the list. If not, return the default value
@param ctx Context for the log msg @param val_name Name of the checked value, for log msg @param array_valid_values Array of valid int, ended with INT_MAX @param default_value Value return if checked value is not in the array @return Value or default_value.