shithub: scc

ref: 994751d39485e086ef623f202fb1b84729fd5d19
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];
}