def esrchc(value, array):
value = stypes.stringToCharP(value)<EOL>ndim = ctypes.c_int(len(array))<EOL>lenvals = ctypes.c_int(len(max(array, key=len)) + <NUM_LIT:1>)<EOL>array = stypes.listToCharArray(array, xLen=lenvals, yLen=ndim)<EOL>return libspice.esrchc_c(value, ndim, lenvals, array)<EOL>
Search for a given value within a character string array.
Return the index of the first equivalent array entry, or -1
if no equivalent element is found.

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

:param value: Key value to be found in array.
:type value: str
:param array: Character string array to search.
:type array: list of str.
:return:
        The index of the first array entry equivalent to value,
        or -1 if none is found.
:rtype: int