strcmp(1): more formatting

This commit is contained in:
Emma Tebibyte 2024-07-12 16:38:50 -06:00
parent 34cd715e37
commit 666c621a02
Signed by: emma
GPG Key ID: 06FA419A1698C270

View File

@ -36,7 +36,7 @@ int main(int argc, char *argv[]) {
} }
for (; *argv[1] != '\0'; ++argv[1]) { for (; *argv[1] != '\0'; ++argv[1]) {
for(i = 2; i < argc; ++i) { for (i = 2; i < argc; ++i) {
if (*argv[i-1] > *argv[i]) { if (*argv[i-1] > *argv[i]) {
return 1; return 1;
} else if (*argv[i-1] < *argv[i]++) { } else if (*argv[i-1] < *argv[i]++) {