home *** CD-ROM | disk | FTP | other *** search
- /****************************************************************************
- *
- * $Source: /unixb/home/unixlib/source/unixlib37/src/stdio/c/RCS/perror,v $
- * $Date: 1996/04/19 21:32:42 $
- * $Revision: 1.1 $
- * $State: Rel $
- * $Author: simon $
- *
- * $Log: perror,v $
- * Revision 1.1 1996/04/19 21:32:42 simon
- * Initial revision
- *
- ***************************************************************************/
-
- static const char rcs_id[] = "$Id: perror,v 1.1 1996/04/19 21:32:42 simon Rel $";
-
- #include <errno.h>
- #include <stdio.h>
-
- __STDIOLIB__
-
- void
- perror (register const char *s)
- {
- if (!s)
- s = "";
-
- fprintf (stderr, "%s: %s\n", s,
- (errno < sys_nerr) ? sys_errlist[errno] : "Unknown Error");
- }
-