source: trunk/athena/etc/synctree/err.c @ 11479

Revision 11479, 237 bytes checked in by ghudson, 27 years ago (diff)
Use strerror().
  • Property svn:executable set to *
Line 
1#include <stdio.h>
2#include <string.h>
3#include <errno.h>
4
5panic(s)
6     char *s;
7{ fprintf(stderr,"Fatal error: %s\n",s);
8  exit(1);
9}
10epanic(s)
11     char *s;
12{ fprintf(stderr, "Fatal error: %s: %s\n", s, strerror(errno));
13  exit(1);
14}
Note: See TracBrowser for help on using the repository browser.