Function clingo_sys::clingo_symbol_is_positive
[−]
[src]
pub unsafe extern "C" fn clingo_symbol_is_positive(
symbol: clingo_symbol_t,
positive: *mut bool
) -> bool
Check if a function is positive (does not have a sign).
Parameters:
symbol
the target symbolpositive
the result
Returns whether the call was successful; might set one of the following error codes: - ::clingo_error_runtime if symbol is not of type ::clingo_symbol_type_function