#include <netx25/config_functions.h> int (*x25_set_parse_error_function(int (*func)(char *)))(char *)
By default, errors are handled by printing a message to stderr and continuing. The x25_set_parse_error_function function allows a different function to be installed for use, for example with windowing programs.
The parameters are:
Table 8-24 x25_set_parse_error_function parameter
Parameter |
Description |
---|---|
func |
A pointer to a function which is installed as the default error handler. This function will be called with a single argument, a pointer to the error string. If this is set to NULL, the default action if restored. |
The address of the previous error function is returned.