*** empty log message ***
[bpt/guile.git] / libguile / strerror.c
CommitLineData
dffa93b1 1/* Turning errno values into English error messages.
e17cba16
GH
2 Copyright (C) 1985, 86, 87, 88, 93, 94, 95 Free Software Foundation, Inc.
3
4This file is part of GNU Emacs.
5
6GNU Emacs is free software; you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published by
8the Free Software Foundation; either version 2, or (at your option)
9any later version.
10
11GNU Emacs is distributed in the hope that it will be useful,
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU General Public License for more details.
15
16You should have received a copy of the GNU General Public License
17along with GNU Emacs; see the file COPYING. If not, write to
18the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19Boston, MA 02111-1307, USA. */
20
21
22char *
23strerror (errnum)
24 int errnum;
25{
26 extern char *sys_errlist[];
27 extern int sys_nerr;
28
29 if (errnum >= 0 && errnum < sys_nerr)
30 return sys_errlist[errnum];
31 return (char *) "Unknown error";
32}