跳转到内容

strlen : 字符串长度

#include <string.h>
size_t strlen(const char *str);
```### Description
strlen 函数通过逐个计数字符直到遇到 NULL 字符,来计算出从 *str 开始的字符串的长度。### Returns
strlen 返回字符计数。
---
**权威来源**: BUSMASTER DITA help source `strlen.dita`, compiled into `BUSMASTER.CHM` with the application.