#include <sicstus/sicstus.h> int SP_cons_functor_array(SP_term_ref term, SP_atom name, int arity, SP_term_ref *arg);
term a reference to a compound term whose
arguments are the elements of
arity is 0,
assigns the Prolog atom whose canonical representation is
name. This is similar to calling
with the first argument unbound and the second argument bound.
Zero if the conversion fails (as far as failure can be detected), and a nonzero value otherwise.
Creating Prolog Terms.