2014年5月27日

[C/C++基础] C语言常用函数strlen的使用方法

摘要: 函数声明:extern unsigned int strlen(char *s);所属函数库:功能:返回s所指的字符串的长度,其中字符串必须以’\0’结尾参数:s为字符串的初始地址使用举例:代码如下编译运行结果说明:函数strlen比较容易理解,其功能和sizeof很容易混淆。其中sizeof指的是... 阅读全文

posted @ 2014-05-27 19:09 Horstxu 阅读(4824) 评论(0) 推荐(0)

导航