Lines Matching full:maxlen
24 size_t strnlen(const char *s, size_t maxlen) // expected-note{{candidate function}}
29 inline size_t strnlen(const char *s, size_t maxlen) // expected-note{{candidate function}} in strnlen() argument
34 return __strnlen_chk(s, maxlen, __builtin_object_size(s, 0)); in strnlen()
37 size_t strnlen(const char *s, size_t maxlen) // expected-note{{candidate disabled: chosen when 'ma…
41 __attribute__((enable_if(maxlen <= __builtin_object_size(s, 0),
42 … "chosen when 'maxlen' is known to be less than or equal to the buffer size")))
45 size_t strnlen(const char *s, size_t maxlen) // expected-note{{candidate function has been explici…
49 __attribute__((enable_if(maxlen > __builtin_object_size(s, 0),
50 "chosen when 'maxlen' is larger than the buffer size")))
51 __attribute__((unavailable("'maxlen' is larger than the buffer size")));
65 …strnlen(c, 999); // expected-error{{call to unavailable function 'strnlen': 'maxlen' is larger th… in test2()