Lines Matching defs:strncpy
459 // strncpy()
467 #define strncpy(a,b,n) __strncpy_chk(a,b,n,(size_t)-1)
471 #define strncpy BUILTIN(strncpy)
472 char *strncpy(char *restrict s1, const char *restrict s2, size_t n);
478 strncpy(NULL, x, 5); // expected-warning{{Null pointer argument in call to string copy function}}
482 strncpy(x, NULL, 5); // expected-warning{{Null pointer argument in call to string copy function}}
486 strncpy(x, (char*)&strcpy_fn, 5); // expected-warning{{Argument to string copy function is the address of the function 'strcpy_fn', which is not a null-terminated string}}
492 if (strncpy(x, y, 5) != x)
505 strncpy(x, y, 5); // expected-warning{{Size argument is greater than the length of the destination buffer}}
511 strncpy(x, y, 5); // expected-warning{{Size argument is greater than the length of the destination buffer}}
520 strncpy(x, y, n); // expected-warning{{Size argument is greater than the length of the destination buffer}}
526 strncpy(x, y, 3); // no-warning
532 strncpy(x, y, 3); // no-warning
537 strncpy(x, y, 4); // no-warning
539 // strncpy does not null-terminate, so we have no idea what the strlen is
550 strncpy(x, y, 4); // no-warning