[PATCH] man/man3/strcmp.3: replace equal/less/greater words
From: Ben Song <hidden>
Date: 2026-03-10 13:53:05
Subsystem:
the rest · Maintainer:
Linus Torvalds
From: Ben Song <hidden>
Date: 2026-03-10 13:53:05
Subsystem:
the rest · Maintainer:
Linus Torvalds
There is no meaning for one string is `less than` or `greater than` another string, but the value of a character in two strings can be compared. Signed-off-by: Ben Song <redacted> --- man/man3/strcmp.3 | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/man/man3/strcmp.3 b/man/man3/strcmp.3
index 2784d51c8..bc238aec1 100644
--- a/man/man3/strcmp.3
+++ b/man/man3/strcmp.3@@ -23,11 +23,11 @@ .SH DESCRIPTION .BR strcmp () The .BR strcmp () -function compares the two strings +function compares the characters in two strings .I s1 and -.IR s2 . -The locale is not taken into account (for a locale-aware comparison, see +.I s2 +one by one until characters differ or until the end of one of the two strings is reached. The locale is not taken into account (for a locale-aware comparison, see .BR strcoll (3)). The comparison is done using unsigned characters. .IP
@@ -39,16 +39,16 @@ .SH DESCRIPTION .I s1 and .I s2 -are equal; +are identical; .IP \[bu] -a negative value if +a negative value if the value of first different character in .I s1 -is less than +is less than that in .IR s2 ; .IP \[bu] -a positive value if +a positive value if the value of first different character in .I s1 -is greater than +is greater than that in .IR s2 . .RE .IP
--
2.53.0