SP_cons_list() #include <sicstus/sicstus.h>
int
SP_cons_list(SP_term_ref term,
SP_term_ref head,
SP_term_ref tail);
Assigns to term a reference to a Prolog list
whose head and tail are the values of head and tail.
Zero if the conversion fails (as far as failure can be detected), and a nonzero value otherwise.