File:  [MW Coherent from dump] / coherent / g / usr / lib / uucp / tay104 / unix / strerr.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Wed May 29 04:56:35 2019 UTC (7 years ago) by root
Branches: MarkWilliams, MAIN
CVS tags: relic, HEAD
coherent

/* strerr.c
   Return a string for a Unix errno value.  */

#include "uucp.h"

#include <errno.h>

#ifndef sys_nerr
extern int sys_nerr;
#endif
#ifndef sys_errlist
extern char *sys_errlist[];
#endif

char *
strerror (ierr)
     int ierr;
{
  if (ierr >= 0 && ierr < sys_nerr)
    return sys_errlist[ierr];
  return (char *) "unknown error";
}

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.