@spiceErrorCheck<EOL>def frmnam(frcode, lenout=_default_len_out):
frcode = ctypes.c_int(frcode)<EOL>lenout = ctypes.c_int(lenout)<EOL>frname = stypes.stringToCharP(lenout)<EOL>libspice.frmnam_c(frcode, lenout, frname)<EOL>return stypes.toPythonString(frname)<EOL>
Retrieve the name of a reference frame associated with a SPICE ID code.

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

:param frcode: an integer code for a reference frame
:type frcode: int
:param lenout: Maximum length of output string.
:type lenout: int
:return: the name associated with the reference frame.
:rtype: str