code: def repmc(instr, marker, value, lenout=None):
      
      if lenout is None:
          lenout = ctypes.c_int(len(instr) + len(value) + len(marker) + 15)
      instr = stypes.stringToCharP(instr)
      marker = stypes.stringToCharP(marker)
      value = stypes.stringToCharP(value)
      out = stypes.stringToCharP(lenout)
      libspice.repmc_c(instr, marker, value, lenout, out)
      return stypes.toPythonString(out)
docs: Replace a marker with a character string.
  
      http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/repmc_c.html
  
      :param instr: Input string.
      :type instr: str
      :param marker: Marker to be replaced.
      :type marker: str
      :param value: Replacement value.
      :type value: str
      :param lenout: Optional available space in output string
      :type lenout: int
      :return: Output string.
      :rtype: str