projects
/
dragonfly.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
Import mdocml-1.13.1
[dragonfly.git]
/
contrib
/
mdocml
/
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
}