#include <apitest.h>
#include <mbstring.h>
#include <pseh/pseh2.h>
#include <ndk/mmfuncs.h>
Go to the source code of this file.
◆ DIFF_RETURN
◆ RETURN_DIFF
◆ WIN32_NO_STATUS
◆ START_TEST()
Definition at line 30 of file _mbsncmp.c.
31{
33
36
37
40
41 ret =
_mbsncmp((
const unsigned char *)
"a", (
const unsigned char *)
"c", 0);
43
44
48
52
53
54 ret =
_mbsncmp((
const unsigned char *)
"a", (
const unsigned char *)
"c", 1);
56
57 ret =
_mbsncmp((
const unsigned char *)
"a", (
const unsigned char *)
"a", 1);
59
60 ret =
_mbsncmp((
const unsigned char *)
"ab", (
const unsigned char *)
"aB", 1);
62
63 ret =
_mbsncmp((
const unsigned char *)
"aa", (
const unsigned char *)
"ac", 2);
65
66
67 ret =
_mbsncmp((
const unsigned char *)
"a", (
const unsigned char *)
"ac", 2);
69
70 ret =
_mbsncmp((
const unsigned char *)
"aa", (
const unsigned char *)
"a", 2);
72
73 ret =
_mbsncmp((
const unsigned char *)
"ab", (
const unsigned char *)
"ab", 100);
75}
#define DIFF_RETURN(sign, absolute)
#define EndSeh(ExpectedStatus)
_Check_return_ _CRTIMP int __cdecl _mbsncmp(_In_z_ const unsigned char *_Str1, _In_z_ const unsigned char *_Str2, _In_ size_t _MaxCount)
#define STATUS_ACCESS_VIOLATION
DWORD WINAPI GetVersion()
_Must_inspect_result_ _In_ WDFDEVICE _In_ LPCGUID _Out_ PINTERFACE _In_ USHORT _In_ USHORT Version
◆ g_WinVersion
Definition at line 14 of file _mbsncmp.c.
Referenced by expect_Sdb_imp(), START_TEST(), test_AllowPermLayer(), Test_ApphelpCheckRunApp(), test_CheckDatabaseManually(), test_DataTags(), test_GetDatabaseInformation(), test_GetDatabaseInformationEmpty(), Test_GetMatchingExe(), Test_layers(), test_match_ex(), test_MatchApplications(), test_mode_generic(), Test_repeatlayer(), test_Sdb(), test_SdbGetAppPatchDir(), test_SdbTagToStringAllTags(), test_SetPermLayerStateLevel(), test_Sign_Media(), and test_TagRef().