int str_len(char *src_str)
{
int temp_num=0;
while(*src_str) //0 src_str
{
src_str++;
temp_num++;
}
return temp_num;
}
字符串字符个数计算
最新推荐文章于 2024-05-26 22:59:15 发布
int str_len(char *src_str)
{
int temp_num=0;
while(*src_str) //0 src_str
{
src_str++;
temp_num++;
}
return temp_num;
}