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