Import mdocml-1.13.1
[dragonfly.git] / contrib / mdocml / test-strlcat.c
CommitLineData
80387638
SW
1#include <string.h>
2
3int
070c62a6 4main(void)
80387638 5{
070c62a6
FF
6 char buf[3] = "a";
7 return( ! (2 == strlcat(buf, "b", sizeof(buf)) &&
8 'a' == buf[0] && 'b' == buf[1] && '\0' == buf[2]));
80387638 9}