Skip to main content

PCMSGetTollDiscountName

Syntax

int PCMSGetTollDiscountName(PCMServerID serv, int idx, char *buffer, int bufSize)

Parameters

  • PCMServerID serv – The PC*Miler server ID.
  • int idx – The index value (integer) of the discount program.
  • char *buffer – The discount toll name (e.g. “EZPASS”) is stored in this buffer.
  • int bufSize – The number of bytes in the buffer.

Description

Gets toll discount program names based on the index value. Available only if the Tolls add-on module is installed.

Return Values

Returns a discount program name, for example “EZPass.”

-1 indicates an invalid server ID or index value, including retired discount programs that are no longer available.

Sample Code

PCMSGetTollDiscountName(server, i, programName, 20);
programTolls = PCMSGetTollBreakdown(trip1, i, " ") / 100.0;
printf("%s Tolls = $%.2f\n", programName, programTolls);

Supported Since: PC*Miler Connect 21

Category: Administration

Last updated July 19, 2025.