Page of 234

HP 9000 User Manual Page 168

Computers.
Hide thumbs

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

   Related Manuals for HP 9000

Comments to this Manuals

Symbols: 0
Latest comments: