strcmp
main
strcmp(1)'s exit codes now are what strcmp(3p) returns.
I could trace strcmp(1) as far back as <293436c5ad/src/streq.c> in my repo.
293436c5ad/src/streq.c
@@ -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; or return EX_OK;?
return EXIT_SUCCESS;
return EX_OK;
No; strcmp(3) returns 0 specifically.
0
Merged.
No dependencies set.
The note is not visible to the blocked user.
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
0specifically.Merged.
Pull request closed