strcmp(1): re-style and tweak exit codes #145
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "strcmp"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
strcmp(1)'s exit codes now are what strcmp(3p) returns.
@ -21,1 +33,3 @@
return -1; /* actually 255 */
for (; *argv[1] != '\0'; ++argv[1]) { /* iterate chars in ref */
/* iterate argc */
for (size_t i = 2 /* ref cmp */; i < argc; ++argv[i], ++i) {
The word “ref” needs to be clarified.
@ -22,2 +39,4 @@
}
}
return 0;
Should this be
return EXIT_SUCCESS;
orreturn EX_OK;
?No; strcmp(3) returns
0
specifically.Merged.
Pull request closed