mirror of
https://github.com/hairrrrr/C-CrashCourse.git
synced 2026-07-16 11:30:44 +08:00
2-8
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
int mystrcmp(char* str1, char* str2) {
|
||||
|
||||
while (*str1 == *str2 && *str1)
|
||||
++str1, ++str2;
|
||||
|
||||
return (*str1 - *str2);
|
||||
}
|
||||
Reference in New Issue
Block a user