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
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