Returns the length of the given null-terminated byte string.
Returns the length of the given null-terminated byte string, that is, the number of characters in a character array whose first element is pointed to by str up to and not including the first null character.
The behavior is undefined if str is not a pointer to a null-terminated byte string.
- Parameters
-
| str | pointer to the null-terminated byte string to be examined |
- Returns
- The length of the null-terminated byte string str.
References LONGPTR_MASK, mask01, mask80, p, and testbyte.
Referenced by __strchrnul(), char_test(), embvm::basicDisplay::printString(), strcat(), strcat_test(), strcpy(), strdup(), strdup_test(), strerror_r(), strlen_test(), strncat(), strndup_test(), strnstr(), strrchr(), strxfrm(), and TEST_CASE().