#include <apitest.h>
#include <shlwapi.h>
Go to the source code of this file.
◆ ok_longlong
Value: do { \
long long _value = (expression); \
ok(_value == (
result),
"Wrong value for '%s', expected: " #
result " (0x%llx), got: 0x%llx\n", \
#expression, (
long long)(
result), _value); \
} while (0)
Definition at line 11 of file StrToInt.c.
◆ START_TEST()
Definition at line 187 of file StrToInt.c.
188{
191}
static VOID TEST_StrToIntA(VOID)
static VOID TEST_StrToIntW(VOID)
◆ TEST_StrToIntA()
Definition at line 17 of file StrToInt.c.
18{
23
34
36 psz = "";
45
47 psz = "123";
56
58 psz = "+123";
67
69 psz = "-123";
78
80 psz = " +123";
89
91 psz = " -123";
100}
#define ok_longlong(expression, result)
#define ok_int(expression, result)
INT WINAPI StrToIntA(LPCSTR lpszStr)
BOOL WINAPI StrToIntExA(const char *str, DWORD flags, INT *ret)
BOOL WINAPI StrToInt64ExA(const char *str, DWORD flags, LONGLONG *ret)
Referenced by START_TEST().
◆ TEST_StrToIntW()
Definition at line 102 of file StrToInt.c.
103{
108
109 n2 =
n1 = 0xDEADFACE;
119
120 n2 =
n1 = 0xDEADFACE;
130
131 n2 =
n1 = 0xDEADFACE;
141
142 n2 =
n1 = 0xDEADFACE;
152
153 n2 =
n1 = 0xDEADFACE;
163
164 n2 =
n1 = 0xDEADFACE;
174
175 n2 =
n1 = 0xDEADFACE;
185}
INT WINAPI StrToIntW(LPCWSTR lpString)
BOOL WINAPI StrToIntExW(const WCHAR *str, DWORD flags, INT *ret)
BOOL WINAPI StrToInt64ExW(const WCHAR *str, DWORD flags, LONGLONG *ret)
Referenced by START_TEST().