/* * PROJECT: ReactOS API tests * LICENSE: LGPL-2.1-or-later (https://spdx.org/licenses/LGPL-2.1-or-later) * PURPOSE: Tests for _ismbcspace * COPYRIGHT: Copyright 2025 Doug Lyons (douglyons@douglyons.com) */ #include #define WIN32_NO_STATUS START_TEST(_ismbcspace) { /* use function pointer to bypass gcc builtin */ int (__cdecl *p__ismbcspace)(unsigned int c); p__ismbcspace = (void *)GetProcAddress( GetModuleHandleA("msvcrt.dll"), "_ismbcspace"); int res, i; for (i = 0; i <= 65535; i++) { if (i == 0x20 || (i >= 0x09 && i <= 0x0D)) { res = p__ismbcspace(i); ok(res, "Expected the output buffer string '0x%x' to be TRUE, got FALSE\n", i); } else { res = p__ismbcspace(i); ok(!res, "Expected the output buffer string '0x%x' to be FALSE, got TRUE\n", i); } } }