shithub: scc

ref: 4606d3ce5f3e8afbd0ba8d4d9971bf981838df16
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";
}