shithub: scc

ref: 9cdf8d4b4c9ecf24e8e065fdbf9a6aea48d5f4af
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";
}