From 9fb35611cc3d03bef8b690b62e0904507c414a61 Mon Sep 17 00:00:00 2001 From: aaron <> Date: Fri, 21 Apr 2000 15:24:20 +0000 Subject: Flesh out libc string function man pages. --- src/lib/libc/string/memcmp.3 | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'src/lib/libc/string/memcmp.3') 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 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.\" $OpenBSD: memcmp.3,v 1.3 1996/12/10 09:06:11 deraadt Exp $ +.\" $OpenBSD: memcmp.3,v 1.4 2000/04/21 15:24:19 aaron Exp $ .\" .Dd June 29, 1991 .Dt MEMCMP 3 @@ -48,8 +48,7 @@ .Sh DESCRIPTION The .Fn memcmp -function -compares byte string +function compares byte string .Fa b1 against byte string .Fa b2 . @@ -59,10 +58,11 @@ bytes long. .Sh RETURN VALUES The .Fn memcmp -function -returns zero if the two strings are identical, +function returns zero if the two strings are identical, otherwise returns the difference between the first two differing bytes -(treated as unsigned char values, so that +(treated as +.Li unsigned char +values, so that .Sq Li \e200 is greater than .Sq Li \&\e0 , @@ -77,6 +77,5 @@ Zero-length strings are always identical. .Sh STANDARDS The .Fn memcmp -function -conforms to +function conforms to .St -ansiC . -- cgit v1.2.3-55-g6feb