forked from bonsai/harakit
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 (i = 2; i < argc; ++i) {
|
||||
/* a former string has a greater byte value */
|
||||
if (*argv[i-1] > *argv[i]) {
|
||||
return 1;
|
||||
/* a latter string has a greater byte value */
|
||||
} else if (*argv[i-1] < *argv[i]++) {
|
||||
return -1; /* actually 255 */
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user