Availability:C-language interface function
bool PL_get_functor(term_t
+t, functor_t *f)If t is compound or an atom, the Prolog representation of the
name-arity pair will be assigned over f. The functor is valid
as long as the term is. Foreign code that keeps the functor must call
PL_register_functor().
See also PL_get_name_arity()
and
PL_is_functor().