#include #include #include #include #include #include // !字符串函数string.h /* 1.string.h strlen、strcmp、strcpy、strcat、strchr、strstr 2.strlen size_t strlen(const char *s); 返回s的字符串长度(不包括结尾的0) 3.strcmp int strcmp(const char *s1, const char *s2); 比较两个字符串,返回: 0:s1==S2 1:s1>s2 -1:s1