#include <sicstus/sicstus.h> int SP_put_functor(SP_term_ref term, SP_atom name, int arity);
term a reference to a compound term with all the
arguments unbound variables. If
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 and third
arguments bound to an atom and an integer,
Zero if the conversion fails (as far as failure can be detected), and a nonzero value otherwise.
Creating Prolog Terms.