shithub: scc

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