C语言标准提供了许多处理字符串的函数。 字符串长度 size_t strlen( const char *str ); strlen函数返回字符串的长度,不包括’\0′ 也就是从str指向的字符开始向后数,遇到&#8