1*61d06d6bSBaptiste Daroussin #include <string.h> 2*61d06d6bSBaptiste Daroussin 3*61d06d6bSBaptiste Daroussin int main(void)4*61d06d6bSBaptiste Daroussinmain(void) 5*61d06d6bSBaptiste Daroussin { 6*61d06d6bSBaptiste Daroussin char buf[3] = "a"; 7*61d06d6bSBaptiste Daroussin return ! (strlcat(buf, "b", sizeof(buf)) == 2 && 8*61d06d6bSBaptiste Daroussin buf[0] == 'a' && buf[1] == 'b' && buf[2] == '\0'); 9*61d06d6bSBaptiste Daroussin } 10