SP_is_compound()
#include <sicstus/sicstus.h> int SP_is_compound(SP_term_ref term);
Determines whether the value of term is a Prolog compound term.
term
1 if it is a compound term and 0 otherwise.
Testing Prolog Terms.