repo.or.cz
/
glibc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Move nss directory into sysdeps Subdirs.
[glibc.git]
/
libio
/
tst-sscanf.c
blob
b1a2b8487ee3001b5531696da611006d8497b127
1
#include <stdio.h>
2
#include <wchar.h>
3
4
#define WCS_LENGTH 256
5
6
int
7
main
(
void
)
8
{
9
const char
cnv
[] =
"%l[abc]"
;
10
const char
str
[] =
"abbcXab"
;
11
wchar_t
wcs
[
WCS_LENGTH
];
12
int
result
=
0
;
13
14
sscanf
(
str
,
cnv
,
wcs
);
15
printf
(
"wcs =
\"
%ls
\"\n
"
,
wcs
);
16
fflush
(
stdout
);
17
result
=
wcscmp
(
wcs
,
L
"abbc"
) !=
0
;
18
19
return
result
;
20
}