shithub: scc

ref: 8e212d00e17c23b79489215d6cc41da22381a550
dir: /lib/c/string/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";
}