//
// Created by 王东梁 on 2023/9/17.
//
#include<stdio.h>
#include <string.h>

int mycmp(const char* s1,const char* s2){
//    int idx=0;
//    while(s1[idx]==s2[idx]&&s1[idx]!='\0'){
//        idx++;
//    }
//    return s1[idx]-s2[idx];
    while (*s1==*s2&&*s1!='\0'){
        s1++;
        s2++;
    }
    return *s1-*s2;
}

int main() {
    char s1[]="abc";
    char s2[]="abc1111";
    printf("%d\n",mycmp(s1,s2));
    return 0;
}