atom(X)

Checks  that  X  is currently instantiated to an atom (ie.  a non- variable
term of arity 0, other than an integer or real).
