#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 66 of file strlen.c.
ACPI_SIZE strlen(const char *String)
void Test_strlen(PFN_STRLEN pstrlen)
◆ Test_strlen()
Definition at line 31 of file strlen.c.
34 #if defined(_M_IX86) || defined(_M_AMD64) 36 char *teststr =
"a\0bcdefghijk";
47 #if defined(_M_IX86) || defined(_M_AMD64) 50 len = pstrlen(teststr + 4);
60 ok(
len == 8,
"Should not have gone backwards (got len %i)", (
int)
len);
LOCAL struct eflags eflags[]
ACPI_SIZE strlen(const char *String)
__INTRIN_INLINE uintptr_t __readeflags(void)
#define ok_int(expression, result)
__INTRIN_INLINE void __writeeflags(uintptr_t Value)
#define STATUS_ACCESS_VIOLATION
#define EndSeh(ExpectedStatus)
Referenced by START_TEST().