| 1 |
/** |
| 2 |
* This file has no copyright assigned and is placed in the Public Domain. |
| 3 |
* This file is part of the mingw-w64 runtime package. |
| 4 |
* No warranty is given; refer to the file DISCLAIMER.PD within this package. |
| 5 |
*/ |
| 6 |
|
| 7 |
#define _CTYPE_DISABLE_MACROS |
| 8 |
#include <ctype.h> |
| 9 |
|
| 10 |
/** |
| 11 |
* Calls to `isprint ('\t')` return inconsistent results depending on CRT |
| 12 |
* and active locale. |
| 13 |
* |
| 14 |
* In all CRTs up to msvcr110.dll, it returns zero in "C" locale |
| 15 |
* and non-zero otherwise. |
| 16 |
* |
| 17 |
* In msvcr120.dll and UCRT, it always returns zero. |
| 18 |
*/ |
| 19 |
|
| 20 |
int __cdecl isprint (int _C) { |
| 21 |
if (_C == '\t') { |
| 22 |
return 0; |
| 23 |
} |
| 24 |
|
| 25 |
return _isctype (_C, _ALPHA | _BLANK | _DIGIT | _PUNCT); |
| 26 |
} |
| 27 |
|
| 28 |
int (__cdecl *__MINGW_IMP_SYMBOL(isprint))(int) = isprint; |