@spiceErrorCheck<EOL>@spiceFoundExceptionThrower<EOL>def bodn2c(name):
name = stypes.stringToCharP(name)<EOL>code = ctypes.c_int(<NUM_LIT:0>)<EOL>found = ctypes.c_int(<NUM_LIT:0>)<EOL>libspice.bodn2c_c(name, ctypes.byref(code), ctypes.byref(found))<EOL>return code.value, bool(found.value)<EOL>
Translate the name of a body or object to the corresponding SPICE
integer ID code.

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

:param name: Body name to be translated into a SPICE ID code.
:type name: str
:return: SPICE integer ID code for the named body.
:rtype: int