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


12.3.35 SP_get_list()

Synopsis

#include <sicstus/sicstus.h>

int
SP_get_list(SP_term_ref term,
            SP_term_ref head,
            SP_term_ref tail);

Assigns to head and tail the head and tail of a Prolog list.

Arguments

term

The SP_term_ref holding the list

head

The SP_term_ref to be assigned the head

tail

The SP_term_ref to be assigned the tail

Return Value

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

See Also

Accessing Prolog Terms.


Send feedback on this subject.