获取一个字符串的长度

支持芯片: SHMICTRL系列芯片 ESP32-S3系列

int strlen(str);

示例

int len;
str s="abc";
len=strlen(s);  //len=3
len=strlen("中国");  //len=4

注意