summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authordd <dd@FreeBSD.org>2006-08-14 08:21:27 +0000
committerdd <dd@FreeBSD.org>2006-08-14 08:21:27 +0000
commit04502e68b12a8f3cf92e510afb33d41bcace2c9c (patch)
tree9bd1538f5a7d644094d341f4cda86f83224299fa /lib
parent462216939a87cd70e07c6b7af698d3da3f98cb25 (diff)
downloadFreeBSD-src-04502e68b12a8f3cf92e510afb33d41bcace2c9c.zip
FreeBSD-src-04502e68b12a8f3cf92e510afb33d41bcace2c9c.tar.gz
Improve the wording. Remove the appositive about strcmp, putting the
first sentence back to the way it was. Add a second sentence that explains the case when strcmp is called.
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/string/strcoll.37
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/libc/string/strcoll.3 b/lib/libc/string/strcoll.3
index a620108..3b7e388 100644
--- a/lib/libc/string/strcoll.3
+++ b/lib/libc/string/strcoll.3
@@ -56,13 +56,16 @@ lexicographically compares the null-terminated strings
.Fa s1
and
.Fa s2
-according to the current locale collation if any, otherwise call
-.Fa strcmp ,
+according to the current locale collation
and returns an integer greater than, equal to, or less than 0,
according as
.Fa s1
is greater than, equal to, or less than
.Fa s2 .
+If information about the current locale collation is not available,
+the value of
+.Fn strcmp s1 s2
+is returned.
.Sh SEE ALSO
.Xr setlocale 3 ,
.Xr strcmp 3 ,
OpenPOWER on IntegriCloud