Operator`s manual
35 Signametrics
SCANErrString
H/W access Command Polled Command
Description Return the string describing the error.
#include “SM4040.H”
int SCANErrString(int iErrorCode, LPSTR lpszError, int iBuffLength)
Remarks Thi
s
function returns a string containing the error description, which corresponds to the
integer error, code iErrorCode. The error string is placed at lpszError.
Parameter
Type/Description
iErrorCode
int Error code.
iBuffLength
int The maximum available length of the string buffer
lpszError
LPSTR Poin
ts to a buffer (at least 40 characters long) to hold the
error string.
Return Value The ret
urn value is the length of the error string or one of the following constants.
Value
Meaning
Positive Value
Length of returned error string.
Negative Value
Error code
Example char cBuf[48];
int length = SCANErrString( -3, cBuf, 48);