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