SP_get_atom()
#include <sicstus/sicstus.h> int SP_get_atom(SP_term_ref term, SP_atom *a);
Assigns to *a
the canonical representation of a Prolog atom
Zero if the conversion fails (as far as failure can be detected), and a nonzero value otherwise.