]> git.ipfire.org Git - thirdparty/squid.git/blob - compat/strerror.c
SourceFormat Enforcement
[thirdparty/squid.git] / compat / strerror.c
1 /*
2 * Copyright (C) 1996-2016 The Squid Software Foundation and contributors
3 *
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
7 */
8
9 #include "squid.h"
10
11 #if HAVE_ERRNO_H
12 #include <errno.h>
13 #endif
14
15 extern int sys_nerr;
16
17 #if NEED_SYS_ERRLIST
18 extern char *sys_errlist[];
19 #endif
20
21 char *
22 strerror(int ern)
23 {
24 return sys_errlist[ern];
25 }
26