1: /* $Header$ */
   2: 
   3: /*
   4:  * Author: Peter J. Nicklin
   5:  */
   6: 
   7: /*
   8:  * fatal() places an error message on the standard error output stream
   9:  * stderr and terminates the process by calling exit(1).
  10:  */
  11: #include <stdio.h>
  12: 
  13: extern char *PGN;           /* program name */
  14: 
  15: /* VARARGS1 */
  16: fatal(fmt, args)
  17:     char *fmt;
  18: {
  19:     if (*PGN != '\0')
  20:         fprintf(stderr, "%s: ", PGN);
  21:     _doprnt(fmt, &args, stderr);
  22:     putc('\n', stderr);
  23:     exit(1);
  24: }

Defined functions

fatal defined in line 16; used 1 times
Last modified: 1985-07-03
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 557
Valid CSS Valid XHTML 1.0 Strict