Lines Matching full:strlen
31 // strlen()
34 #define strlen BUILTIN(strlen)
35 size_t strlen(const char *s);
38 if (strlen("123") != 3)
44 if (strlen(a) != 3)
50 if (strlen(a) != 3)
53 if (strlen(a) != 3)
58 return strlen(0); // expected-warning{{Null pointer argument in call to string length function}}
62 return strlen((char*)&strlen_fn); // expected-warning{{Argument to string length function is the address of the function 'strlen_fn', which is not a null-terminated string}}
67 return strlen((char*)&&label); // expected-warning{{Argument to string length function is the address of the label 'label', which is not a null-terminated string}}
77 size_t a = strlen(z.a);
79 size_t b = strlen(z.a);
85 size_t c = strlen(z.a);
92 size_t a = strlen(x);
93 size_t b = strlen(x);
99 size_t c = strlen(x);
106 size_t a = strlen(global_str);
107 size_t b = strlen(global_str);
114 size_t c = strlen(global_str);
120 size_t a = strlen(x);
123 size_t b = strlen(x);
130 size_t c = strlen(x);
136 if (strlen(x) < 5)
138 if (strlen(x) < 5)
220 if (strnlen(x, 10) != strlen(x))
293 if (strlen(x) != strlen(y))
302 if (strlen(y) == 4)
308 if (strlen(y) == 3)
334 if (stpcpy(x, y) != &x[strlen(y)])
337 if (strlen(x) != strlen(y))
346 if (strlen(y) == 4)
352 if (strlen(y) == 3)
389 size_t orig_len = strlen(x);
392 if (strlen(y) != 4)
398 if ((int)strlen(x) != (orig_len + strlen(y)))
404 if (strlen(y) == 4)
410 if (strlen(y) == 3)
416 if (strlen(y) == 2)
422 if (strlen(y) == 2)
428 if (strlen(dst) < 4)
435 if (strlen(dst) < 4)
442 if (strlen(dst) < 4)
447 // length for the "before" strlen, we won't be able to set one for "after".
450 if (strlen(dst) != (((size_t)0) - 2))
452 if (strlen(src) != 2)
495 if (strlen(x) != strlen(y))
504 if (strlen(y) == 4)
510 if (strlen(y) == 3)
519 if (strlen(y) == 3)
525 if (strlen(y) == 4)
531 if (strlen(y) == 3)
539 // strncpy does not null-terminate, so we have no idea what the strlen is
541 if (strlen(x) > 4)
546 if (strlen(y) >= 4)
553 if (strlen(x) > 3)
590 size_t orig_len = strlen(x);
593 if (strlen(y) != 4)
596 if (strncat(x, y, strlen(y)) != x)
599 if (strlen(x) != orig_len + strlen(y))
605 if (strlen(y) == 4)
606 strncat(x, y, strlen(y)); // expected-warning{{Size argument is greater than the free space in the destination buffer}}
611 if (strlen(y) == 3)
612 strncat(x, y, strlen(y)); // expected-warning{{Size argument is greater than the free space in the destination buffer}}
617 if (strlen(y) == 2)
618 strncat(x, y, strlen(y)); // expected-warning{{Size argument is greater than the free space in the destination buffer}}
623 if (strlen(y) == 4)
628 if (strlen(y) == 2)
629 strncat(x, y, strlen(y)); // no-warning
634 if (strlen(y) == 4)
640 if (strlen(dst) < 4)
647 if (strlen(dst) < 4)
657 if (strlen(dst) < 4)
665 // length for the "before" strlen, we won't be able to set one for "after".
671 if (strlen(dst) < 4)
673 if (strlen(dst) == 4)
681 if (strlen(dst) < 4)
683 if (strlen(dst) == 4)
688 if (strlen(dst) != (((size_t)0) - 2))
690 if (strlen(src) != 2)