Embedded TCP/IP stack
4.7.0
|
fnet_size_t fnet_strnlen | ( | const fnet_char_t * | str, |
fnet_size_t | max_len | ||
) |
Calculate the length of a fixed-size string.
str | Pointer to the null-terminated string to be examined. |
max_len | Maximum number of characters to examine. |
str
string or max_len if the null character was not found.This function computes the number of bytes in the string to which str
points, not including the terminating null character, but at most max_len. The function never examines more than max_len
bytes of the string.