C语言库函数探究

1、strlen()求字符串长度 1 //模拟实现strlen函数 2 #include<stdio.h> 3 #include<stdlib.h> 4 #include<string.h> 5 #include<assert.h> 6 int my_strlen1(const char* str) //借助临时变量实现 7 { 8 int count = 0; 9
相关文章
相关标签/搜索