字符的ASCII码值
int my_strcmp(const char* s1, const char* s2)
{
while (*s1 != '\0' && *s1 == *s2)
{
s1++;
s2++;
}
return *s1 - *s2;
}
int main()
{
char s1[] = "Hello";
char s2[] = "World";
printf("%d\n", my_strcmp(s1, s2));
return 0;
}