@spiceErrorCheck<EOL>@spiceFoundExceptionThrower<EOL>def bodc2n(code, lenout=_default_len_out):
code = ctypes.c_int(code)<EOL>name = stypes.stringToCharP("<STR_LIT:U+0020>" * lenout)<EOL>lenout = ctypes.c_int(lenout)<EOL>found = ctypes.c_int()<EOL>libspice.bodc2n_c(code, lenout, name, ctypes.byref(found))<EOL>return stypes.toPythonString(name), bool(found.value)<EOL>
Translate the SPICE integer code of a body into a common name
for that body.

http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/bodc2n_c.html

:param code: Integer ID code to be translated into a name.
:type code: int
:param lenout: Maximum length of output name.
:type lenout: int
:return: A common name for the body identified by code.
:rtype: str