@spiceErrorCheck<EOL>@spiceFoundExceptionThrower<EOL>def bods2c(name):
name = stypes.stringToCharP(name)<EOL>code = ctypes.c_int(<NUM_LIT:0>)<EOL>found = ctypes.c_int(<NUM_LIT:0>)<EOL>libspice.bods2c_c(name, ctypes.byref(code), ctypes.byref(found))<EOL>return code.value, bool(found.value)<EOL>
Translate a string containing a body name or ID code to an integer code.

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

:param name: String to be translated to an ID code.
:type name: str
:return: Integer ID code corresponding to name.
:rtype: int