[][src]Function clingo_sys::clingo_model_symbols

pub unsafe extern "C" fn clingo_model_symbols(
    model: *const clingo_model_t,
    show: clingo_show_type_bitset_t,
    symbols: *mut clingo_symbol_t,
    size: usize
) -> bool

Get the symbols of the selected types in the model.

@note CSP assignments are represented using functions with name "$" where the first argument is the name of the CSP variable and the second one its value.

@param[in] model the target @param[in] show which symbols to select @param[out] symbols the resulting symbols @param[in] size the number of selected symbols @return whether the call was successful; might set one of the following error codes:

  • ::clingo_error_bad_alloc
  • ::clingo_error_runtime if the size is too small

@see clingo_model_symbols_size()