Return to test-strlcpy.c CVS log | Up to [cvsweb.bsd.lv] / mandoc |
version 1.2, 2014/01/04 01:11:00 | version 1.3, 2015/10/06 18:32:20 | ||
---|---|---|---|
|
|
||
main(void) | main(void) | ||
{ | { | ||
char buf[2] = ""; | char buf[2] = ""; | ||
return( ! (1 == strlcpy(buf, "a", sizeof(buf)) && | return ! (strlcpy(buf, "a", sizeof(buf)) == 1 && | ||
'a' == buf[0] && '\0' == buf[1])); | buf[0] == 'a' && buf[1] == '\0'); | ||
} | } |