//模拟实现strcmp函数 //str1>str2,返回1 //str1=str2,返回0 //str1<str2,返回-1 #include <stdio.h> #include <assert.h> int my_strcmp(const char *str1, const char *str2) { assert(str1); assert(str2); while (*(str1)==*(str2)) { if (*str1 == '