strcmp(1): commenting
This commit is contained in:
parent
3c243e4a09
commit
ab003f7d4a
@ -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 */
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user