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
Don't use .Xo/.Xc. Fix date format.
[netbsd-mini2440.git]
/
regress
/
lib
/
libc
/
ssp
/
snprintf
/
snprintf.c
blob
77bb03566dd1193794a5e9555012ac3dda4bf4c3
1
#include <stdio.h>
2
#include <stdlib.h>
3
4
int
5
main
(
int
argc
,
char
*
argv
[])
6
{
7
char
b
[
10
];
8
size_t
len
=
atoi
(
argv
[
1
]);
9
(
void
)
snprintf
(
b
,
len
,
"%s"
,
"0123456789"
);
10
(
void
)
printf
(
"%s
\n
"
,
b
);
11
return
0
;
12
}