Get Error Contents

By using function SmcWGetErrorString, it is possible to convert error code to a character string for all functions.
The character string used by function SmcWGetErrorString is 256 bytes at most.

Programming Example in C

long Ret;
long ErrorRet;
short Id;
char ErrorString[256];

Ret = SmcWInit( "SMC000" , &Id );
ErrorRet = SmcWGetErrorString( Ret , ErrorString );
printf("SmcWInit :%s", ErrorString );

Ret = SmcWExit( Id );
ErrorRet = SmcWGetErrorString( Ret , ErrorString );
printf("SmcWExit :%s", ErrorString );