-/* $Id: strerror.c,v 1.2 2003/07/28 00:09:16 tgl Exp $ */
+/* src/port/strerror.c */
/*
* strerror - map error number to descriptive string
* modified for ANSI by D'Arcy J.M. Cain
*/
-#include <string.h>
-#include <stdio.h>
-#include <errno.h>
+#include "c.h"
+
extern const char *const sys_errlist[];
extern int sys_nerr;
if (errnum < 0 || errnum > sys_nerr)
{
- sprintf(buf, "unrecognized error %d", errnum);
+ sprintf(buf, _("unrecognized error %d"), errnum);
return buf;
}