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; //經過地址來計
相關文章
相關標籤/搜索