By using function SsiGetErrorString, it is possible to convert error code to a character string for all functions. The character string used by function SsiGetErrorString is 256 bytes at most.
Programming Example in C
long Ret;
long ErrorRet;
short Id;
char ErrorString[256];
Ret = SsiInit( "SSI000" , &Id );
ErrorRet = SsiGetErrorString( Ret , ErrorString );
printf("SSiInit:%s", ErrorString );
Ret = SsiExit( Id );
ErrorRet = SsiGetErrorString( Ret , ErrorString );
printf("SsiExit:%s", ErrorString );
Ret = ctypes.c_long()
ErrorRet = ctypes.c_long()
Id = ctypes.c_short()
ErrorString = ctypes.create_string_buffer(256)
Ret.value = cssi.SsiInit ( b"SSI000" , ctypes.byref(Id) )
ErrorRet.value = cssi.SsiGetErrorString( Ret, ErrorString )
print( f"SsiInit : {ErrorString.value.decode('utf-8')}" )
Ret.value = cssi.SsiExit ( Id )
ErrorRet.value = cssi.SsiGetErrorString( Ret, ErrorString )
print( f"SsiExit : {ErrorString.value.decode('utf-8')}" )