<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def esrchc(value, array):
 """ 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 """

    value = stypes.stringToCharP(value)
    ndim = ctypes.c_int(len(array))
    lenvals = ctypes.c_int(len(max(array, key=len)) + 1)
    array = stypes.listToCharArray(array, xLen=lenvals, yLen=ndim)
    return libspice.esrchc_c(value, ndim, lenvals, array)