shithub: scc

ref: 87b202a67e2d27f83702b4c353f8f66bc8d8056a
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";
}