Lines Matching defs:strncat
679 // strncat()
687 #define strncat(a,b,c) __strncat_chk(a,b,c, (size_t)-1)
691 #define strncat BUILTIN(strncat)
692 char *strncat(char *restrict s1, const char *restrict s2, size_t n);
698 strncat(NULL, x, 4); // expected-warning{{Null pointer passed as 1st argument to string concatenation function}}
702 strncat(x, NULL, 4); // expected-warning{{Null pointer passed as 2nd argument to string concatenation function}}
706 strncat(x, (char*)&strncat_fn_src, 4); // expected-warning{{Argument to string concatenation function is the address of the function 'strncat_fn_src', which is not a null-terminated string}}
710 strncat((char*)&strncat_fn_dst, x, 4); // expected-warning{{Argument to string concatenation function is the address of the function 'strncat_fn_dst', which is not a null-terminated string}}
721 clang_analyzer_eval(strncat(x, y, strlen(y)) == x); // expected-warning{{TRUE}}
729 strncat(x, y, strlen(y));
736 strncat(x, y, strlen(y));
743 strncat(x, y, strlen(y));
750 strncat(x, y, 2);
758 strncat(x, y, strlen(y)); // no-warning
764 strncat(x, y, 1); // no-warning
768 strncat(dst, "1234", 5);
775 strncat(dst, src, 3);
779 strncat(dst2, src, 4);
785 strncat(dst, &src[offset], 3);
789 strncat(dst2, &src[offset], 4);
800 strncat(dst, src, limit); // no-warning
809 strncat(dst, src, (size_t)limit); // no-warning
821 strncat(dst, src, 2);
826 strncat(dst, src, 0); // no-warning
832 strncat(dst, src, 4); // no-warning