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

  1. // Copyright (c) 1993-1999 Microsoft Corporation
  2. #include <stdlib.h>
  3. #include "y1.h"
  4. #include <stdarg.h>
  5. /*
  6. * 12-Apr-83 (RBD) Add symbolic exit status
  7. */
  8. void
  9. error(char *s, ...)
  10. {
  11. va_list arg_ptr;
  12. va_start(arg_ptr, s);
  13. /* write out error comment */
  14. ++nerrors;
  15. fprintf( stderr, "\n fatal error: ");
  16. vfprintf( stderr, s, arg_ptr);
  17. fprintf( stderr, ", line %d\n", lineno );
  18. va_end(arg_ptr);
  19. if( !fatfl ) return;
  20. summary();
  21. exit(EX_ERR);
  22. }