crt: isblank.c: document _isctype ('\t', _BLANK) behavior among CRTs
Signed-off-by: Kirill Makurin <maiddaisuki@outlook.com>
Signed-off-by: LIU Hao <lh_mouse@126.com>
diff --git a/mingw-w64-crt/misc/isblank.c b/mingw-w64-crt/misc/isblank.c
index 010805a..a45ecba 100644
--- a/mingw-w64-crt/misc/isblank.c
+++ b/mingw-w64-crt/misc/isblank.c
@@ -1,6 +1,13 @@
#define _CTYPE_DISABLE_MACROS
#include <ctype.h>
+/**
+ * Calls to `_isctype ('\t', _BLANK)` return inconsistent results
+ * depending on CRT and active locale.
+ *
+ * In all CRTs it returns zero in "C" locale and non-zero otherwise.
+ */
+
int __cdecl isblank (int _C)
{
return (_isctype(_C, _BLANK) || _C == '\t');