nerror(3dn)
NAME
nerror − produce DECnet error messages
SYNTAX
nerror (s)
char *s;
ARGUMENTS
Input Argument
s Program name, such as dlogin, because the value of the s argument is the name of the program that incurred the error (as it is with perror).
DESCRIPTION
The nerror subroutine produces dnet_conn DECnet error messages by mapping standard ULTRIX errors to the appropriate DECnet error message. The resulting DECnet error text is written to the standard error file. The error number is taken from the external variable errno, which is set when errors occur but not cleared when nonerroneous calls are made.
When you write a program that uses dnet_conn, call nerror in order to return any DECnet system errors that occur.
RETURN VALUE
The DECnet error text is output to the standard error file.
SEE ALSO
DECnet-ULTRIX User’s and Programmer’s Guide,
dnet_conn diagnostics