shithub: scc

ref: a004412434813b0500807d46d09c2d0cef13205d
dir: /src/libc/string/strerror.c/

View raw version
#include <errno.h>
#include <string.h>

#undef strerror

char *
strerror(int errnum)
{
	if (errnum > EUNKNOWN || errnum <= 0)
		errnum = EUNKNOWN;
	return _sys_errlist[errnum];
}