]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
memcmp.3: Clarify that comparison interprets bytes as "unsigned char"
authorMichael Kerrisk <mtk.manpages@gmail.com>
Wed, 14 Sep 2011 07:04:16 +0000 (09:04 +0200)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Fri, 16 Sep 2011 05:00:48 +0000 (07:00 +0200)
Reported-by: Sebastian Unger <sebunger@gmx.net>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man3/memcmp.3

index 6d9975baeaba6745708686037f5f2446b9a8cfbb..853a2bfecf258e9d37753cbef5c48340764d16c0 100644 (file)
@@ -25,7 +25,7 @@
 .\"     Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
 .\"     386BSD man pages
 .\" Modified Sat Jul 24 18:55:27 1993 by Rik Faith (faith@cs.unc.edu)
-.TH MEMCMP 3  1993-04-10 "" "Linux Programmer's Manual"
+.TH MEMCMP 3  2011-09-14 "" "Linux Programmer's Manual"
 .SH NAME
 memcmp \- compare memory areas
 .SH SYNOPSIS
@@ -37,8 +37,9 @@ memcmp \- compare memory areas
 .SH DESCRIPTION
 The
 .BR memcmp ()
-function compares the first \fIn\fP bytes of the
-memory areas \fIs1\fP and \fIs2\fP.
+function compares the first \fIn\fP bytes (each interpreted as
+.IR "unsigned char" )
+of the memory areas \fIs1\fP and \fIs2\fP.
 It returns an integer less than,
 equal to, or greater than zero if \fIs1\fP is found, respectively, to
 be less than, to match, or be greater than \fIs2\fP.