From 90f51bbb685bb9fccba3febf8858a400af2c0325 Mon Sep 17 00:00:00 2001 From: Keith Bostic Date: Tue, 15 May 1990 21:08:15 -0800 Subject: [PATCH] date and time created 90/05/15 14:08:15 by bostic SCCS-vsn: lib/libc/string/memcmp.3 5.1 --- usr/src/lib/libc/string/memcmp.3 | 43 ++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 usr/src/lib/libc/string/memcmp.3 diff --git a/usr/src/lib/libc/string/memcmp.3 b/usr/src/lib/libc/string/memcmp.3 new file mode 100644 index 0000000000..633513161c --- /dev/null +++ b/usr/src/lib/libc/string/memcmp.3 @@ -0,0 +1,43 @@ +.\" Copyright (c) 1990 The Regents of the University of California. +.\" All rights reserved. +.\" +.\" This code is derived from software contributed to Berkeley by +.\" Chris Torek. +.\" +.\" %sccs.include.redist.man% +.\" +.\" @(#)memcmp.3 5.1 (Berkeley) %G% +.\" +.TH MEMCMP 3 "" +.UC 7 +.SH NAME +memcmp \- compare byte string +.SH SYNOPSIS +.nf +.ft B +#include + +int +memcmp(const void *b1, const void *b2, size_t len); +.ft R +.fi +.SH DESCRIPTION +.B Memcmp +compares byte string +.I b1 +against byte string +.IR b2 , +returning zero if they are identical, +otherwise returning the difference between the first two differing bytes +(treated as unsigned char values, so that '\e200' is greater than \&'\e0', +e.g.). +Both strings are assumed to be +.I len +bytes long. +Zero-length strings are always identical. +.SH SEE ALSO +bcmp(3), strcasecmp(3), strcmp(3), strcoll(3), strncasecmp(3), +strncmp(3), strxfrm(3) +.SH STANDARDS +.I Memcmp +conforms to ANSI X3.159-1989 (``ANSI C''). -- 2.20.1