@spiceErrorCheck<EOL>def lparsm(inlist, delims, nmax, lenout=None):
if lenout is None:<EOL><INDENT>lenout = ctypes.c_int(len(inlist) + <NUM_LIT:1>)<EOL><DEDENT>else:<EOL><INDENT>lenout = ctypes.c_int(lenout)<EOL><DEDENT>inlist = stypes.stringToCharP(inlist)<EOL>delims = stypes.stringToCharP(delims)<EOL>items = stypes.emptyCharArray(lenout.value, nmax)<EOL>nmax = ctypes.c_int(nmax)<EOL>n = ctypes.c_int()<EOL>libspice.lparsm_c(inlist, delims, nmax, lenout, ctypes.byref(n), items)<EOL>return [stypes.toPythonString(x.value) for x in items][<NUM_LIT:0>:n.value]<EOL>
Parse a list of items separated by multiple delimiters.

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

:param inlist: list of items delimited by delims.
:type inlist: list of strings
:param delims: Single characters which delimit items.
:type delims: str
:param nmax: Maximum number of items to return.
:type nmax: int
:param lenout: Optional Length of strings in item array.
:type lenout: int
:return: Items in the list, left justified.
:rtype: list of strings