PCMSGetLegInfo
Syntax
int PCMSGetLegInfo(Trip trip, int legNum, struct legInfoType *pLegInfo)
Parameters
- Trip trip – Handle to a trip.
- int legNum – The leg of the trip.
- struct legInfoType *pLegInfo – Returns the leg miles, total miles, leg cost, total cost, leg hours, and total hours.
Description
Gets the leg information for the current trip.
Note: To use this function, check that the compiler’s option for data alignment is set to byte alignment.
Return Values
Standard returns.
Sample Code
int legNum;
int i;
struct legInfoType pLegInfo;
int numLegs = PCMSGetNumLegs();
for(i = 0; i < numLegs; i++)
PCMSGetLegInfo(trip, legNum, &pLegInfo);
Supported Since: PC*Miler Connect 12
Category: Trip Reports