- 博客(2)
- 收藏
- 关注
原创 strlen strcmp strcpy strcat strchr strstr 基础实现
#include #include int mystrlen(char *string) { int i = 0; while (string[i] != '\0') i++; return i; } int mystrcmp(const char *string1, const char *string2) {
2012-07-17 18:50:51
229
原创 strlen strcmp strcpy strcat strchr strstr 实现(指针)
#include #include int mystrlen(const char *string) { int i = 0; assert(string != NULL); while (*string++ != 0) i++; return i; } int mystrcmp(const
2012-07-17 18:48:36
290
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅