[PATCH 1/1] strcmp.3: clarify that strcmp() is not locale aware

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Indicate that strcmp() does not take the locale into account.
Provide a link to strcoll().

Signed-off-by: Heinrich Schuchardt <xypron.glpk@xxxxxx>
---
 man3/strcmp.3 | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/man3/strcmp.3 b/man3/strcmp.3
index 33c6c7430..9928d1367 100644
--- a/man3/strcmp.3
+++ b/man3/strcmp.3
@@ -47,6 +47,8 @@ function compares the two strings
 .I s1
 and
 .IR s2 .
+The locale is not taken into account (for a locale aware comparison see
+.BR strcoll (3)).
 It returns an integer less than, equal to, or greater
 than zero if
 .I s1
-- 
2.18.0

--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux