#include <apitest.h>
#include <stdio.h>
#include <tchar.h>
#include <pseh/pseh2.h>
#include <ntstatus.h>
Go to the source code of this file.
◆ EFLAGS_DF
◆ PFN_STRLEN
◆ PNTSTATUS
◆ _Return_type_success_()
typedef _Return_type_success_ |
( |
return >= |
0 | ) |
|
◆ START_TEST()
Definition at line 71 of file strlen.c.
72{
74#ifdef __GNUC__
76#endif
77}
ACPI_SIZE strlen(const char *String)
void Test_strlen(PFN_STRLEN pstrlen)
◆ Test_strlen()
Definition at line 31 of file strlen.c.
32{
34#if defined(_M_IX86) || defined(_M_AMD64)
36 char *teststr = "a\0bcdefghijk";
37#endif
38
39
44
46
47#if defined(_M_IX86) || defined(_M_AMD64)
50 len = pstrlen(teststr + 4);
51
52#ifdef _M_AMD64
54#else
56#endif
58
59
60
61
62#ifndef TEST_CRTDLL
64 {
65 ok(
len == 8,
"Should not have gone backwards (got len %i)", (
int)
len);
66 }
67#endif
68#endif
69}
#define EndSeh(ExpectedStatus)
#define ok_int(expression, result)
__INTRIN_INLINE void __writeeflags(uintptr_t Value)
__INTRIN_INLINE uintptr_t __readeflags(void)
#define STATUS_ACCESS_VIOLATION
Referenced by START_TEST().