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