shithub: scc

ref: 7b8f9336dd0170c6dcaf12368b0c03c8019c5ab5
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";
}