SP_is_list()
#include <sicstus/sicstus.h> int SP_is_list(SP_term_ref term);
Determines whether the value of term is a Prolog list cell, i.e. a compound term with functor ./2.
term
./2
1 if it is a list and 0 otherwise.
Testing Prolog Terms.