@spiceErrorCheck<EOL>@spiceFoundExceptionThrower<EOL>def cnmfrm(cname, lenout=_default_len_out):
lenout = ctypes.c_int(lenout)<EOL>frname = stypes.stringToCharP(lenout)<EOL>cname = stypes.stringToCharP(cname)<EOL>found = ctypes.c_int()<EOL>frcode = ctypes.c_int()<EOL>libspice.cnmfrm_c(cname, lenout, ctypes.byref(frcode), frname,<EOL>ctypes.byref(found))<EOL>return frcode.value, stypes.toPythonString(frname), bool(found.value)<EOL>
Retrieve frame ID code and name to associate with an object.

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

:param cname: Name of the object to find a frame for.
:type cname: int
:param lenout: Maximum length available for frame name.
:type lenout: int
:return:
        The ID code of the frame associated with cname,
        The name of the frame with ID frcode.
:rtype: tuple