shithub: scc

ref: 041d2d96655de6afaac6b20437df8897b03f6c92
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];
}