Solstice X.25 9.2 Developer's Guide

8.23 x25_set_parse_error_function--Install a Function as Default Error Handler

Synopsis
#include <netx25/config_functions.h>

    int (*x25_set_parse_error_function(int (*func)(char *)))(char *)
Description

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.

Arguments

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. 

Return Values

The address of the previous error function is returned.