@spiceErrorCheck<EOL>def pckopn(name, ifname, ncomch):
name = stypes.stringToCharP(name)<EOL>ifname = stypes.stringToCharP(ifname)<EOL>ncomch = ctypes.c_int(ncomch)<EOL>handle = ctypes.c_int()<EOL>libspice.pckopn_c(name, ifname, ncomch, ctypes.byref(handle))<EOL>return handle.value<EOL>
Create a new PCK file, returning the handle of the opened file. 

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/pckopn_c.html

:param name: The name of the PCK file to be opened. 
:type name: str
:param ifname: The internal filename for the PCK.
:type ifname: str
:param ncomch: The number of characters to reserve for comments. 
:type ncomch: int
:return: The handle of the opened PCK file.
:rtype: int