home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 1997 #3 / Amiga Plus CD - 1997 - No. 03.iso / pd / programmierung / vbcc / machines / amiga68k / libsrc / string / strerror.c < prev    next >
Encoding:
C/C++ Source or Header  |  1996-05-22  |  141 b   |  12 lines

  1. #include <errno.h>
  2. #include <string.h>
  3.  
  4. extern char *_errors[];
  5.  
  6. char *strerror(size_t n)
  7. {
  8.     if(n>ERANGE) n=0;
  9.     return(_errors[n]);
  10. }
  11.  
  12.