Availability:built-in
[ISO]atom_length(+Atom,
-Length)True if Atom is an atom of Length characters. The
SWI-Prolog version accepts all atomic types, as well as code-lists and
character-lists. New code should avoid this feature and use
write_length/3
to get the number of characters that would be written if the argument
was handed to write_term/3.