shithub: scc

ref: eb8459e384b8d2597f51e944c4cfff40480c9fff
dir: /lib/c/src/strerror.c/

View raw version

#include <errno.h>
#include <string.h>
#undef strerror

char *
strerror(int errnum)
{
	if (errnum < _sys_nerr)
		return _sys_errlist[errnum];
	else
		return "Unknown error";
}