cstr_len

Function cstr_len 

Source
pub unsafe fn cstr_len(s: *const u8) -> usize
Expand description

计算字符串的长度(不包括 NULL 终止符)

§参数:

  • s - 字符串指针

§返回值:

字符串长度