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
Fix up mix of man(7)/mdoc(7).
[netbsd-mini2440.git]
/
regress
/
lib
/
libc
/
ssp
/
raw
/
raw.c
blob
30c369449c29ae7846402211e59efc4dcf6c4099
1
#include <stdio.h>
2
#include <stdlib.h>
3
#include <string.h>
4
5
static void
raw
(
char
*,
size_t
);
6
7
static void
8
raw
(
char
*
b
,
size_t
len
) {
9
b
[
len
] =
'\0'
;
10
}
11
12
int
13
main
(
int
argc
,
char
*
argv
[])
14
{
15
char
b
[
10
];
16
size_t
len
=
atoi
(
argv
[
1
]);
17
18
(
void
)
strncpy
(
b
,
"0000000000"
,
sizeof
(
b
));
19
raw
(
b
,
len
);
20
(
void
)
printf
(
"%s
\n
"
,
b
);
21
return
0
;
22
}