x04ndc converts an integer error code to its corresponding string error name.
The integer error code is typically returned as part of the NAG error structure by a prior call to a NAG C Library function.
The function may be called by the names: x04ndc or nag_code_to_error_name.
x04ndc takes as input the value of the integer error code returned in the NAG error structure and returns the corresponding string error name. This can be useful when you want to print the returned error code as a name. For example the NE_BAD_PARAM code has the value . A call to x04ndc returns the string ‘NE_BAD_PARAM’.
x04ndc returns (null pointer) if the input value is not recognized as a valid NAG error code.
1: – intInput
On entry: the value of a NAG error code.
6Error Indicators and Warnings
8Parallelism and Performance
Background information to multithreading can be found in the Multithreading documentation.
x04ndc is threaded by NAG for parallel execution in multithreaded implementations of the NAG Library.
Please consult the X06 Chapter Introduction for information on how to control and interrogate the OpenMP environment used within this function. Please also consult the Users' Note for your implementation for any additional implementation-specific information.
This example produces error name strings corresponding to a number of integer error codes.