Embedded Artistry libc
C Standard Library Support for Bare-metal Systems
|
Go to the source code of this file.
Macros | |
#define | LONGPTR_MASK (sizeof(long) - 1) |
#define | testbyte(x) |
Functions | |
size_t | strlen (const char *str) |
Returns the length of the given null-terminated byte string. More... | |
#define testbyte | ( | x | ) |
size_t strlen | ( | const char * | str | ) |
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.
str | pointer to the null-terminated byte string to be examined |
Definition at line 77 of file strlen.c.
References LONGPTR_MASK, and testbyte.
Referenced by __strchrnul(), strcat(), strcpy(), strdup(), strerror_r(), strncat(), strnstr(), strrchr(), and strxfrm().