code: def brckti(number, end1, end2):
      
      number = ctypes.c_int(number)
      end1 = ctypes.c_int(end1)
      end2 = ctypes.c_int(end2)
      return libspice.brckti_c(number, end1, end2)
docs: Bracket a number. That is, given a number and an acceptable
      interval, make sure that the number is contained in the
      interval. (If the number is already in the interval, leave it
      alone. If not, set it to the nearest endpoint of the interval.)
  
      http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/brckti_c.html
  
      :param number: Number to be bracketed.
      :type number: int
      :param end1: One of the bracketing endpoints for number.
      :type end1: int
      :param end2: The other bracketing endpoint for number.
      :type end2: int
      :return: value within an interval
      :rtype: int