Skip to main content

Rail State Mileage Functions

HRESULT _PCRSFN PCRSGetAllStateRRMileage (Trip trip, MileageStruct* combinationArray, long numCombinations)

  • combinationArray: Output list containing MileageStruct structures representing unique combinations of RR, state, and miles for the given trip.
  • numCombinations: The number of structures returned in the array.

HRESULT _PCRSFN PCRSGetAllStateRRMileage1 (Trip trip, char *mileageBuffer, long bufferSize)

  • mileageBuffer: Output list of unique combinations of RR, state, and miles for the given trip.
  • bufferSize: The length of the mileageBuffer.

HRESULT _PCRSFN PCRSGetStateMiles (Trip trip, int stIndx, long *pMiles, char *stAbbr)

  • stIndx: State index number.
  • pMiles: State miles.
  • stAbbr: State abbreviation.

HRESULT _PCRSFN PCRSGetStateRRMiles (Trip trip, int stIndx, short rrNum, long *pMiles)

  • stIndx: State index number (see Appendix E for a list of state index numbers).
  • rrNum: RR number.
  • pMiles: State miles.

HRESULT _PCRSFN PCRSGetMaxStates (short *maxStates)

  • maxStates: Maximum number of states.

HRESULT _PCRSFN PCRSGetMaxStateRRs (short *maxStateRRs)

  • maxStateRRs: Maximum number of RRs per state.
Last updated July 19, 2025.