shithub: scc

ref: 428e86f306625a3192e03260a921a19c3109f57d
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";
}