Next: strpbrk
, Previous: strndup
, Up: ISO C and POSIX Function Substitutes [Contents][Index]
strnlen
POSIX specification:
https://pubs.opengroup.org/onlinepubs/9699919799/functions/strnlen.html
Gnulib module: strnlen
Portability problems fixed by Gnulib:
Portability problems not fixed by Gnulib:
strnlen (s, maxlen)
can crash if
s is null-terminated but address arithmetic overflows
(i.e., s + maxlen < s
):
Android 5.0.