Merge branch 'vendor/GCC50' - gcc 5.0 snapshot 1 FEB 2015
[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 }