.. include:: ../substitutions

.. oe:namespace:: OEChem

.. meta::
   :keywords: OEGetPDBAtomName

.. oe:function:: OEGetPDBAtomName

   .. oe:language:: c++ java csharp

      .. oe:api::

         const char* OEGetPDBAtomName(unsigned int idx)

   .. oe:language:: python

      .. oe:api:: python

         OEGetPDBAtomName(idx: int) -> str

   Converts an **OEChem TK** PDB atom name index, as returned by the
   :oe:func:`OEChem::OEGetPDBAtomIndex` function, back into a string
   representation.  Valid indices are specified in **OEChem TK**'s
   :oe:constns:`OEChem::OEPDBAtomName` namespace.

   A NULL pointer, ``(char*)0``, is returned for invalid or unrecognized
   argument values.  All other returned string constants are guaranteed
   to be four characters long.  For example, the input value
   :oe:const:`OEChem::OEPDBAtomName::CA` returns the string value ``" CA "``.
