Next: , Previous: , Up: cpg-bif   [Contents][Index]


12.3.8 SP_cons_list()

Synopsis

#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.

Arguments

term

The SP_term_ref to be assigned

head

The head of the new list

tail

The tail of the new list

Return Value

Zero if the conversion fails (as far as failure can be detected), and a nonzero value otherwise.

See Also

Creating Prolog Terms.


Send feedback on this subject.