code: def lstlec(string, n, lenvals, array):
      
      string = stypes.stringToCharP(string)
      array = stypes.listToCharArrayPtr(array, xLen=lenvals, yLen=n)
      n = ctypes.c_int(n)
      lenvals = ctypes.c_int(lenvals)
      return libspice.lstlec_c(string, n, lenvals, array)
docs: Given a character string and an ordered array of character
      strings, find the index of the largest array element less than
      or equal to the given string.
  
      http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/lstlec_c.html
  
      :param string: Upper bound value to search against.
      :type string: str
      :param n: Number elements in array.
      :type n: int
      :param lenvals: String length.
      :type lenvals: int
      :param array: Array of possible lower bounds.
      :type array: list
      :return:
              index of the last element of array that is
              lexically less than or equal to string.
      :rtype: int