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
* Makerules (common-before-compile): New variable.
[glibc.git]
/
stdio-common
/
tst-sprintf.c
blob
afbacd90375c86ac7563bff88e96db13aee0106f
1
#include <stdio.h>
2
#include <string.h>
3
4
5
int
6
main
(
void
)
7
{
8
char
buf
[
100
];
9
int
result
=
0
;
10
11
if
(
sprintf
(
buf
,
"%.0ls"
,
L
"foo"
) !=
0
12
||
strlen
(
buf
) !=
0
)
13
{
14
puts
(
"sprintf (buf,
\"
%.0ls
\"
, L
\"
foo
\"
) produced some output
\n
"
);
15
result
=
1
;
16
}
17
18
return
result
;
19
}