docs: def cmprss(delim, n, instr, lenout=_default_len_out):
      """
      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
      """
      delim = ctypes.c_char(delim.encode(encoding='UTF-8'))
      n = ctypes.c_int(n)
      instr = stypes.stringToCharP(instr)
      output = stypes.stringToCharP(lenout)
      libspice.cmprss_c(delim, n, instr, lenout, output)
      return stypes.toPythonString(output)