Return to test-strlcat.c CVS log | Up to [cvsweb.bsd.lv] / mandoc |
File: [cvsweb.bsd.lv] / mandoc / test-strlcat.c (download)
Revision 1.2, Sat Jan 4 01:11:00 2014 UTC (10 years, 8 months ago) by schwarze
Clean up feature tests: * Split the configure steering script out of the Makefile. * Let the configure step depend on the test sources. * Clean up the test programs such that they can be run. |
#include <string.h> int main(void) { char buf[3] = "a"; return( ! (2 == strlcat(buf, "b", sizeof(buf)) && 'a' == buf[0] && 'b' == buf[1] && '\0' == buf[2])); }