C語言:如何本身寫4個簡單的經常使用字符串處理函數?

一、strlen  -- 統計字符串的長度,不包含結尾的'\0'  --例如strlen("hello")  獲得5c++ 源碼:函數 //strlen() #include <stdio.h> #include <string.h> int mylen(const char *s); int main(){ char a[]="hello"; char b[]="world";
相關文章
相關標籤/搜索