]>
Commit | Line | Data |
---|---|---|
25f98340 AJ |
1 | #ifndef _SQUID_COMPAT_XSTRERROR_H |
2 | #define _SQUID_COMPAT_XSTRERROR_H | |
3 | ||
4 | /** strerror() wrapper replacement. | |
5 | * | |
6 | * Provides the guarantee that a string is always returned. | |
7 | * Where strerror() would have provided NULL this will report the error as unknown. | |
8 | */ | |
9 | #define xstrerror() xstrerr(errno) | |
10 | ||
11 | /** Provide the textual display of a system error number. | |
12 | * A string is always returned. | |
979f3ae6 | 13 | * On MS Windows the native Win32 errors are also translated. |
25f98340 AJ |
14 | */ |
15 | extern const char * xstrerr(int error); | |
16 | ||
17 | #endif /* _SQUID_COMPAT_XSTRERROR_H */ |