Function clingo_sys::clingo_theory_atoms_term_to_string_size [] [src]

pub unsafe extern "C" fn clingo_theory_atoms_term_to_string_size(
    atoms: *const clingo_theory_atoms_t,
    term: clingo_id_t,
    size: *mut usize
) -> bool

Get the size of the string representation of the given theory term (including the terminating 0).

Parameters:

  • atoms - container where the term is stored
  • term - id of the term
  • size - the resulting size

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

  • ::clingo_error_bad_alloc