shithub: scc

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