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 PC*MILER|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