strlen()函数说明
返回指定字符串长度,不包括结束字符'/0'
strlen()函数原型
int strlen(const char *str)
strlen()函数定义
int strlen(const char *str)
{
if (NULL == str)
throw"Invalid Argument!";
int len;
for(len=0; *str != '/0'; str++)
len++;
return n;
}
strlen()函数说明
返回指定字符串长度,不包括结束字符'/0'
strlen()函数原型
int strlen(const char *str)
strlen()函数定义
int strlen(const char *str)
{
if (NULL == str)
throw"Invalid Argument!";
int len;
for(len=0; *str != '/0'; str++)
len++;
return n;
}