#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 68 of file strlen.c.
69{
71#ifdef __GNUC__
73#endif
74}
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);
55
56
57
58
59#ifndef TEST_CRTDLL
61 {
62 ok(
len == 8,
"Should not have gone backwards (got len %i)", (
int)
len);
63 }
64#endif
65#endif
66}
#define EndSeh(ExpectedStatus)
#define ok_int(expression, result)
#define STATUS_ACCESS_VIOLATION
__INTRIN_INLINE void __writeeflags(uintptr_t Value)
__INTRIN_INLINE uintptr_t __readeflags(void)
Referenced by START_TEST().