shithub: scc

ref: 0bea8c5077c0ed1f2c61ce65f0b8f14eed89eca3
dir: /lib/c/strerror.c/

View raw version

#include <errno.h>
#include <string.h>
#undef strerror

char *
strerror(int errnum)
{
	if (errnum < _sys_nerr)
		return _sys_errlist[errnum];
	else
		return "Unknown error";
}