HP 9000 User Manual page 168

Computers
Hide thumbs Also See for 9000:
Table of Contents

Advertisement

}
else {
}
}
(void) fprintf( stderr. "%s: errno
%d\n". pstr. errno)j
/*
**************************************************************************
** errorO
**
** description:
** display error message on stderr and leave if fatal
** get message from a message catalog (catgets(3c»
**
** assumptions:
** all errors go to stderr
**
** global variables:
** Progname: char pointer to the program name
** Message: array of char pointers to format string messages
** Catd: message catalog descriptor
**
** return value:
** no return value
**************************************************************************
/*
VARARGS 2
*/
static void
errore fatal. num. va_alist)
int fatalj
/* Warning or Fatal error */
int numj
/* message number */
va_dcl
/* optional arguments */
{
register char *fmtj /* points to format string */
va_list argsj
/* points to optional argument list */
/* set up the optional argument list */
va_start( args)j
/* sync stdout vith stderr */
if (fflush( stdout)
==
EOF) {
Perror( "fflush")j
}
/* get the message format string */
fmt
=
catgets( Catd. BL_SETB. num. Message[num-l])j
Example of Internationalized Software 8-11
8

Advertisement

Table of Contents
loading

Table of Contents