repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
No empty .Rs/.Re
[netbsd-mini2440.git]
/
regress
/
lib
/
libc
/
stdio
/
sscanf
/
sscanf.c
blob
6a5359fac7b8dcc914284677031b9b838f1fe5cd
1
#include <stdio.h>
2
#include <err.h>
3
4
static const char
str
[] =
"
\f\n\r\t\v
%z"
;
5
int
6
main
(
void
)
7
{
8
/* set of "white space" symbols from isspace(3) */
9
char
c
=
0
;
10
(
void
)
sscanf
(
str
,
"%%%c"
, &
c
);
11
if
(
c
!=
'z'
)
12
errx
(
1
,
"expected `%c', got `%c'"
,
'z'
,
c
);
13
return
0
;
14
}