shithub: scc

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