PCMSNumStops
Syntax
int PCMSNumStops(Trip trip)
Parameters
Trip trip – Handle to a trip.
Description
Gets the total number of stops currently in the trip’s stop list. This includes both manually and automatically added stops.
Return Values
Returns the number of stops in the trip’s stop list.
Sample Code
for (i = 0; i < PCMSNumStops(trip); i++)
{
bytes = PCMSGetRptLine(tripID, RPT_MILEAGE, i, buffer, 40);
if (0 < bytes)
printf("%s\n", buffer);
else
printf("Stop %d is invalid\n", i);
}
Supported Since: PC*Miler Connect 12
Category: Trip Management