summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2001-05-14 18:38:05 +0000
committerru <ru@FreeBSD.org>2001-05-14 18:38:05 +0000
commitbb0854494ca828a273a86d0398378a18cc414897 (patch)
treec4362cccb1452bb9c77011bde4a09fa12b019716 /lib
parent3add9296c0d3caf32b9bd8d7a1a36829df415713 (diff)
downloadFreeBSD-src-bb0854494ca828a273a86d0398378a18cc414897.zip
FreeBSD-src-bb0854494ca828a273a86d0398378a18cc414897.tar.gz
mdoc(7) police: add RETURN VALUES section.
PR: docs/27161 Submitted by: Kazuhiro KONDOU <k-fuji@za2.so-net.ne.jp>
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/string/strcasecmp.321
1 files changed, 13 insertions, 8 deletions
diff --git a/lib/libc/string/strcasecmp.3 b/lib/libc/string/strcasecmp.3
index 8c1b63a..8941e18 100644
--- a/lib/libc/string/strcasecmp.3
+++ b/lib/libc/string/strcasecmp.3
@@ -58,8 +58,19 @@ functions
compare the null-terminated strings
.Fa s1
and
-.Fa s2
-and return an integer greater than, equal to, or less than 0,
+.Fa s2 .
+.Pp
+The
+.Fn strncasecmp
+compares at most
+.Fa len
+characters.
+.Sh RETURN VALUES
+The
+.Fn strcasecmp
+and
+.Fn strncasecmp
+return an integer greater than, equal to, or less than 0,
according as
.Fa s1
is lexicographically greater than, equal to, or less than
@@ -70,12 +81,6 @@ The comparison is done using unsigned characters, so that
.Sq Li \e200
is greater than
.Ql \e0 .
-.Pp
-The
-.Fn strncasecmp
-compares at most
-.Fa len
-characters.
.Sh SEE ALSO
.Xr bcmp 3 ,
.Xr memcmp 3 ,
OpenPOWER on IntegriCloud