mirror of
https://github.com/hairrrrr/C-CrashCourse.git
synced 2026-03-24 05:51:14 +08:00
7 lines
118 B
C
7 lines
118 B
C
int mystrcmp(char* str1, char* str2) {
|
|
|
|
while (*str1 == *str2 && *str1)
|
|
++str1, ++str2;
|
|
|
|
return (*str1 - *str2);
|
|
} |