摘要: 头文件:#include <string.h> strlen()函数用来计算字符串的长度,其原型为:unsigned int strlen (char *s); s为指定的字符串 如果字符格式等于字符数组的大小,那么strlen()的返回值就无法确定了。 例如: char str[6] = "abc 阅读全文
posted @ 2019-07-06 11:29 Frances_FKYM 阅读(3398) 评论(0) 推荐(0) 编辑