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