SP_atom_length() #include <sicstus/sicstus.h>
int
SP_atom_length(SP_atom atom);
Obtains the length of the encoded string representing a Prolog atom.
The length if atom is valid, and
0 otherwise.
Same as strlen(SP_string_from_atom(a), but runs in O(1) time.
Creating and Manipulating SP_term_refs.