openHiTLS API openHiTLS 0.1.0-Alpha1

◆ BSL_SAL_Strnlen()

uint32_t BSL_SAL_Strnlen ( const char *  string,
uint32_t  count 
)

Obtain the length of a given string.

Obtain the length of a given string.

注意
None.
参数
string[IN] String to obtain the length.
count[IN] Maximum length
返回值
Ifthe parameter is abnormal, return 0.
Ifthe length of a string is greater than the count, return count. Otherwise, the actual length of the string is returned.