repo.or.cz
/
valgrind.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Add missing zstd.h to coregrind Makefile.am noinst_HEADERS
[valgrind.git]
/
memcheck
/
tests
/
wmemcmp.c
blob
d7376200947c873ae68b922857b9fe11e32df17b
1
#include <stdlib.h>
2
#include <wchar.h>
3
4
int
main
()
5
{
6
wchar_t
*
s
= (
wchar_t
*)
malloc
(
8
*
sizeof
(
wchar_t
));
7
s
[
0
] =
'-'
;
8
s
[
1
] =
'N'
;
9
s
[
2
] =
'A'
;
10
s
[
3
] =
'N'
;
11
s
[
4
] =
' '
;
12
s
[
5
] =
'3'
;
13
s
[
6
] =
'3'
;
14
s
[
7
] =
'\0'
;
15
return
wmemcmp
(
s
+
1
,
L
"NAN"
,
3
) ==
0
;
16
}
17