2 * $Id: strerror.c,v 1.1 2002/01/22 16:03:02 dfs Exp $
4 * Copyright (C) 1996 Lars Fenneberg and Christian Graefe
6 * This file is provided under the terms and conditions of the GNU general
7 * public license, version 2 or any later version, incorporated herein by
16 * if we're missing strerror, these are mostly not defined either
19 extern char *sys_errlist[];
24 * Purpose: implements strerror for systems which lack it. if these
25 * systems even lack sys_errlist, you loose...
30 char *strerror(int err)
34 if (err >= 0 && err < sys_nerr)
35 return sys_errlist[err];
37 sprintf(buf, "unknown error: %d", errno);