@spiceErrorCheck<EOL>def prsint(string):
string = stypes.stringToCharP(string)<EOL>intval = ctypes.c_int()<EOL>libspice.prsint_c(string, ctypes.byref(intval))<EOL>return intval.value<EOL>
Parse a string as an integer, encapsulating error handling.

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

:param string: String representing an integer.
:type string: str
:return: Integer value obtained by parsing string.
:rtype: int