Function clingo_sys::clingo_control_has_const [] [src]

pub unsafe extern "C" fn clingo_control_has_const(
    control: *const clingo_control_t,
    name: *const c_char,
    exists: *mut bool
) -> bool

Check if there is a constant definition for the given constant.

Parameters:

  • control - the target
  • name - the name of the constant
  • exists - whether a matching constant definition exists

Returns whether the call was successful; might set one of the following error codes:

  • ::clingo_error_runtime if constant definition does not exist

@see clingo_control_get_const()