shithub: scc

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