strlen()、strcpy()、strcat、strcmp 函数的实现

strlen函数实现(c语言) #include <stdio.h> int strlen(const char *s) { const char *p; if(s == NULL) { printf("input point is NULL"); return -1; } for (p = s; *p; ++p); return p - s; //经过地址来计
相关文章
相关标签/搜索