|
Embedded Artistry Framework
Embedded Systems C++ Framework
|
#include <string.h>
Functions | |
| size_t | strnlen (const char *str, size_t maxlen) |
| Returns the length of the given null-terminated byte string. More... | |
Returns the length of the given null-terminated byte string.
Same as
The behavior is undefined if str points to a character array which lacks the null character and the size of that character array < maxlen; in other words, an erroneous value of maxlen does not expose impending buffer overflow.
| str | pointer to the null-terminated byte string to be examined |
| maxlen | maximum number of characters to examine |
References cp.
Referenced by strncat(), strncpy(), and strnlen_test().

1.8.15