|
|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - download
Length: 435 (0x1b3)
Types: TextFile
Names: »std.c«
└─⟦a05ed705a⟧ Bits:30007078 DKUUG GNU 2/12/89
└─⟦de6342db5⟧ »./fgrep-1.0.tar.Z«
└─⟦571f2592a⟧
└─⟦this⟧ »fgrep-1.0/std.c«
/* std.c - compensate for a few missing library functions.
In the Public Domain; written by Mike Haertel. */
#include "std.h"
#include "unix.h"
#ifdef X_strerror
#if defined(unix) || defined(__unix__)
char *
DEFUN(strerror, (errnum), int errnum)
{
extern int sys_nerr;
extern char *sys_errlist[];
if (errnum > 0 && errnum < sys_nerr)
return sys_errlist[errnum];
return "";
}
#endif /* unix */
#endif /* X_strerror */