shithub: scc

ref: 4c09eaec1c1f81e175b6e8b6266e8a2c9aa7afaa
dir: /lib/c/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";
}