Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

27 lines
510 B

// Copyright (c) 1993-1999 Microsoft Corporation
#include <stdlib.h>
#include "y1.h"
#include <stdarg.h>
/*
* 12-Apr-83 (RBD) Add symbolic exit status
*/
void
error(char *s, ...)
{
va_list arg_ptr;
va_start(arg_ptr, s);
/* write out error comment */
++nerrors;
fprintf( stderr, "\n fatal error: ");
vfprintf( stderr, s, arg_ptr);
fprintf( stderr, ", line %d\n", lineno );
va_end(arg_ptr);
if( !fatfl ) return;
summary();
exit(EX_ERR);
}