summaryrefslogtreecommitdiff
path: root/src/lib/libc/string/memcmp.3
diff options
context:
space:
mode:
authoraaron <>2000-04-21 15:24:20 +0000
committeraaron <>2000-04-21 15:24:20 +0000
commit9fb35611cc3d03bef8b690b62e0904507c414a61 (patch)
treecbb158a96fec3a91f1d59c3e9f768b10d6ed872e /src/lib/libc/string/memcmp.3
parenta4336f357f9e30dffdfad4909b24bd2e82c096a2 (diff)
downloadopenbsd-9fb35611cc3d03bef8b690b62e0904507c414a61.tar.gz
openbsd-9fb35611cc3d03bef8b690b62e0904507c414a61.tar.bz2
openbsd-9fb35611cc3d03bef8b690b62e0904507c414a61.zip
Flesh out libc string function man pages.
Diffstat (limited to 'src/lib/libc/string/memcmp.3')
-rw-r--r--src/lib/libc/string/memcmp.315
1 files changed, 7 insertions, 8 deletions
diff --git a/src/lib/libc/string/memcmp.3 b/src/lib/libc/string/memcmp.3
index 34c5f60861..db4fef364b 100644
--- a/src/lib/libc/string/memcmp.3
+++ b/src/lib/libc/string/memcmp.3
@@ -33,7 +33,7 @@
33.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 33.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34.\" SUCH DAMAGE. 34.\" SUCH DAMAGE.
35.\" 35.\"
36.\" $OpenBSD: memcmp.3,v 1.3 1996/12/10 09:06:11 deraadt Exp $ 36.\" $OpenBSD: memcmp.3,v 1.4 2000/04/21 15:24:19 aaron Exp $
37.\" 37.\"
38.Dd June 29, 1991 38.Dd June 29, 1991
39.Dt MEMCMP 3 39.Dt MEMCMP 3
@@ -48,8 +48,7 @@
48.Sh DESCRIPTION 48.Sh DESCRIPTION
49The 49The
50.Fn memcmp 50.Fn memcmp
51function 51function compares byte string
52compares byte string
53.Fa b1 52.Fa b1
54against byte string 53against byte string
55.Fa b2 . 54.Fa b2 .
@@ -59,10 +58,11 @@ bytes long.
59.Sh RETURN VALUES 58.Sh RETURN VALUES
60The 59The
61.Fn memcmp 60.Fn memcmp
62function 61function returns zero if the two strings are identical,
63returns zero if the two strings are identical,
64otherwise returns the difference between the first two differing bytes 62otherwise returns the difference between the first two differing bytes
65(treated as unsigned char values, so that 63(treated as
64.Li unsigned char
65values, so that
66.Sq Li \e200 66.Sq Li \e200
67is greater than 67is greater than
68.Sq Li \&\e0 , 68.Sq Li \&\e0 ,
@@ -77,6 +77,5 @@ Zero-length strings are always identical.
77.Sh STANDARDS 77.Sh STANDARDS
78The 78The
79.Fn memcmp 79.Fn memcmp
80function 80function conforms to
81conforms to
82.St -ansiC . 81.St -ansiC .