1 /***********************************************************
2 Copyright (c) 2000, BeOpen.com.
3 Copyright (c) 1995-2000, Corporation for National Research Initiatives.
4 Copyright (c) 1990-1995, Stichting Mathematisch Centrum.
7 See the file "Misc/COPYRIGHT" for information on usage and
8 redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
9 ******************************************************************/
11 /* PD implementation of strerror() for systems that don't have it.
12 Author: Guido van Rossum, CWI Amsterdam, Oct. 1990, <guido@cwi.nl>. */
17 extern char *sys_errlist
[];
23 if (err
>= 0 && err
< sys_nerr
)
24 return sys_errlist
[err
];
25 sprintf(buf
, "Unknown errno %d", err
);
31 char *sys_errlist
[1] = 0;