git.ckatri.com
/
mandoc.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Make eqn tree output a bit more useful.
[mandoc.git]
/
test-strlcat.c
1
#include <string.h>
2
3
int
4
main
(
void
)
5
{
6
char
buf
[
3
] =
"a"
;
7
return
( ! (
2
==
strlcat
(
buf
,
"b"
,
sizeof
(
buf
)) &&
8
'a'
==
buf
[
0
] &&
'b'
==
buf
[
1
] &&
'\0'
==
buf
[
2
]));
9
}