1d5e63c8dSjoerg #include <string.h> 2d5e63c8dSjoerg 3d5e63c8dSjoerg int main(void)470f041f9Sjoergmain(void) 5d5e63c8dSjoerg { 670f041f9Sjoerg char buf[2] = ""; 7*9ff1f2acSchristos return ! (strlcpy(buf, "a", sizeof(buf)) == 1 && 8*9ff1f2acSchristos buf[0] == 'a' && buf[1] == '\0'); 9d5e63c8dSjoerg } 10