shithub: scc

ref: 41554abe9460deefadc99c78d196d1cd83f7b7fb
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";
}