gc_ResultMsg( )
Termination Events | Cautions | Errors | Example | See Also
Name: int gc_ResultMsg(cclibid, result_code, msg) Inputs: Returns: Includes: Category: Mode: Platform and Technology: Description
- Note: The gc_ResultMsg( ) function is deprecated in this software release. The suggested alternative is gc_ResultInfo( ) to retrieve event information or gc_ErrorInfo( ) to retrieve error information.
The gc_ResultMsg( ) function retrieves an ASCII string describing a result code. The result_code parameter may represent an error code returned by the gc_ErrorValue( ) function or a result value returned by a gc_ResultValue( ) function.
Termination Events
Cautions
Do not overwrite the *msg pointer since it points to private internal Global Call data space.
Errors
If this function returns <0 to indicate failure, no additional information is available to indicate why the function failed. Generally, a failure of this function is caused by passing an invalid cclibid or msg parameter.
Example
#include <stdio.h> #include <srllib.h> #include <gclib.h> #include <gcerr.h> /* cclibid = LIBID_GC to print GC Lib's result value */ void print_result_msg(int cclibid, long result_code) { char *msg; /* points to the error message string */ char *lib_name; /* library name for cclibid */ if (gc_ResultMsg(cclibid, result_code, &msg) == GC_SUCCESS) { gc_CCLibIDToName(cclibid, &lib_name); printf("%s library had error 0x%lx - %s\n", lib_name, result_code, msg); } else { printf("gc_ResultMsg failed\n"); } }See Also
- gc_ResultInfo( )
- gc_ResultValue( ) (deprecated)
Click here to contact Telecom Support Resources
Copyright 2003, Intel Corporation