Next: cpg-ref-SP_calloc, Previous: cpg-ref-SP_atom_from_string, Up: cpg-bif [Contents][Index]
SP_atom_length()
#include <sicstus/sicstus.h> size_t SP_atom_length(SP_atom atom);
Obtains the length of the encoded string representing a Prolog atom.
The atom to inspect.
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.