SP_put_term()
#include <sicstus/sicstus.h> int SP_put_term(SP_term_ref to, SP_term_ref from);
Assigns to to the value of from.
to
from
Zero if the conversion fails (as far as failure can be detected), and a nonzero value otherwise.
Creating Prolog Terms.