repo.or.cz
/
dragonfly.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
kernel - cleanup vfs_cache debugging
[dragonfly.git]
/
contrib
/
mdocml
/
test-strlcpy.c
blob
05fa509455c019e98b41170b9e6d56de6a96877b
1
#include <string.h>
2
3
int
4
main
(
void
)
5
{
6
char
buf
[
2
] =
""
;
7
return
( ! (
1
==
strlcpy
(
buf
,
"a"
,
sizeof
(
buf
)) &&
8
'a'
==
buf
[
0
] &&
'\0'
==
buf
[
1
]));
9
}