scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | README | LICENSE

strerror.c (164B)


      1 #include <errno.h>
      2 #include <string.h>
      3 #undef strerror
      4 
      5 char *
      6 strerror(int errnum)
      7 {
      8 	if (errnum > _sys_nerr)
      9 		errnum = EUNKNOWN;
     10 	return _sys_errlist[errnum];
     11 }