From 04502e68b12a8f3cf92e510afb33d41bcace2c9c Mon Sep 17 00:00:00 2001 From: dd Date: Mon, 14 Aug 2006 08:21:27 +0000 Subject: 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. --- lib/libc/string/strcoll.3 | 7 +++++-- 1 file 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 , -- cgit v1.1