int PCMSGetErrorString(int errCode, char *buffer, int bufLen)



int errCode – The PC*MILER Connect error code.

char *buffer – The buffer where the error text will be deposited.

int bufLen – The length of the buffer.


Gets the error text from PC*MILER Connect’s resources.

Return Values 

Returns the number of characters copied into the buffer.

Sample Code 

/* Create a new trip */
shortTrip = PCMSNewTrip(server);

/* Error handling */
if (0 == shortTrip)
errorCode = PCMSGetError();
           printf ("Could not create a trip:");
           printf ("%s\n", PCMSGetErrorString(errorCode,
                                    buffer, 100));

Supported Since: PC*MILER Connect 12

Category: Trip Management