@spiceErrorCheck<EOL>def cmprss(delim, n, instr, lenout=_default_len_out):
delim = ctypes.c_char(delim.encode(encoding='<STR_LIT>'))<EOL>n = ctypes.c_int(n)<EOL>instr = stypes.stringToCharP(instr)<EOL>output = stypes.stringToCharP(lenout)<EOL>libspice.cmprss_c(delim, n, instr, lenout, output)<EOL>return stypes.toPythonString(output)<EOL>
Compress a character string by removing occurrences of
more than N consecutive occurrences of a specified
character.

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

:param delim: Delimiter to be compressed.
:type delim: str
:param n: Maximum consecutive occurrences of delim.
:type n: int
:param instr: Input string.
:type instr: str
:param lenout: Optional available space in output string.
:type lenout: Optional int
:return: Compressed string.
:rtype: str