shithub: scc

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