Next: cpg-ref-SP_create_stream, Previous: cpg-ref-SP_cons_functor_array, Up: cpg-bif [Contents][Index]
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.
The SP_term_ref to be assigned
The head of the new list
The tail of the new list
Zero if the conversion fails (as far as failure can be detected), and a nonzero value otherwise.