shithub: scc

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