@spiceErrorCheck<EOL>def bsrchc(value, ndim, lenvals, array):
value = stypes.stringToCharP(value)<EOL>ndim = ctypes.c_int(ndim)<EOL>lenvals = ctypes.c_int(lenvals)<EOL>array = stypes.listToCharArrayPtr(array, xLen=lenvals, yLen=ndim)<EOL>return libspice.bsrchc_c(value, ndim, lenvals, array)<EOL>
Do a binary earch for a given value within a character string array.
Return the index of the first matching array entry, or -1 if the key
value was not found.

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

:param value: Key value to be found in array.
:type value: str
:param ndim: Dimension of array.
:type ndim: int
:param lenvals: String length.
:type lenvals: int
:param array: Character string array to search.
:type array: list of strings
:return: index
:rtype: int