ReactOS 0.4.16-dev-1983-g1a17364
_stricmp.c File Reference
#include <apitest.h>
#include <pseh/pseh2.h>
#include <ndk/umtypes.h>
Include dependency graph for _stricmp.c:

Go to the source code of this file.

Macros

#define WIN32_NO_STATUS
 

Typedefs

typedef int(__cdeclPFN_stricmp) (const char *_String1, const char *_String2)
 

Functions

static BOOL Init (void)
 
 START_TEST (_stricmp)
 

Variables

static PFN_stricmp p_stricmp
 

Macro Definition Documentation

◆ WIN32_NO_STATUS

#define WIN32_NO_STATUS

Definition at line 8 of file _stricmp.c.

Typedef Documentation

◆ PFN_stricmp

typedef int(__cdecl * PFN_stricmp) (const char *_String1, const char *_String2)

Definition at line 13 of file _stricmp.c.

Function Documentation

◆ Init()

static BOOL Init ( void  )
static

Definition at line 16 of file _stricmp.c.

17{
20 ok(p_stricmp != NULL, "Failed to load _stricmp from %s\n", TEST_DLL_NAME);
21 return (p_stricmp != NULL);
22}
static PFN_stricmp p_stricmp
Definition: _stricmp.c:14
int(__cdecl * PFN_stricmp)(const char *_String1, const char *_String2)
Definition: _stricmp.c:13
#define ok(value,...)
Definition: atltest.h:57
#define NULL
Definition: types.h:112
#define GetProcAddress(x, y)
Definition: compat.h:753
HINSTANCE WINAPI DECLSPEC_HOTPATCH LoadLibraryA(LPCSTR lpLibFileName)
Definition: loader.c:111
#define TEST_DLL_NAME
Definition: wsprintf.c:3
static PVOID hdll
Definition: shimdbg.c:126

Referenced by START_TEST().

◆ START_TEST()

START_TEST ( _stricmp  )

Definition at line 24 of file _stricmp.c.

25{
26 int result;
27
28#ifndef TEST_STATIC_CRT
29 if (!Init())
30 {
31 skip("Skipping tests, because _stricmp is not available\n");
32 return;
33 }
34#endif
35
36 StartSeh()
37 result = p_stricmp("a", NULL);
39#ifdef TEST_NTDLL
41#else
43#endif
44
45 StartSeh()
46 result = p_stricmp(NULL, "a");
48#ifdef TEST_NTDLL
50#else
52#endif
53}
static BOOL Init(void)
Definition: _stricmp.c:16
#define GetNTVersion()
Definition: apitest.h:17
#define StartSeh()
Definition: apitest.h:93
#define EndSeh(ExpectedStatus)
Definition: apitest.h:99
#define skip(...)
Definition: atltest.h:64
#define ok_int(expression, result)
Definition: atltest.h:134
#define STATUS_ACCESS_VIOLATION
GLuint64EXT * result
Definition: glext.h:11304
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6204
#define is_reactos()
Definition: test.h:1041
#define _WIN32_WINNT_VISTA
Definition: sdkddkver.h:25
#define STATUS_SUCCESS
Definition: shellext.h:65
#define MAXLONG
Definition: umtypes.h:116

Variable Documentation

◆ p_stricmp

PFN_stricmp p_stricmp
static

Definition at line 14 of file _stricmp.c.

Referenced by Init(), and START_TEST().