strcmp(1): commenting

This commit is contained in:
Emma Tebibyte 2024-07-14 03:25:52 -06:00
parent 3c243e4a09
commit ab003f7d4a
Signed by untrusted user: emma
GPG Key ID: 06FA419A1698C270

View File

@ -37,8 +37,10 @@ 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]) { /* a former string has a greater byte value */
if (*argv[i-1] > *argv[i]) {
return 1; return 1;
/* a latter string has a greater byte value */
} else if (*argv[i-1] < *argv[i]++) { } else if (*argv[i-1] < *argv[i]++) {
return -1; /* actually 255 */ return -1; /* actually 255 */
} }