# GetRS232ErrorString

char *GetRS232ErrorString (int errorNum);

## Purpose

Converts the error number returned by an RS-232 Library function into a meaningful error message.

If errorNum is -1 (Unknown System Error), GetRS232ErrorString calls the Windows SDK GetLastError function and translates the return value to a Windows message string.

## Parameters

Input
Name | Type | Description
errorNum | integer | Error code returned by an RS-232 Library function.

## Return Value

Name | Type | Description
message | string | The meaningful error message for the error number.