shithub: scc

ref: 0fc1735500cec3c113a2ae30cb98e6de81fc2c51
dir: /lib/c/src/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";
}