aboutsummaryrefslogtreecommitdiff
path: root/libiberty/memcmp.c
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2001-09-26 18:45:50 +0000
committerDJ Delorie <dj@redhat.com>2001-09-26 18:45:50 +0000
commit39423523167c47f72822dbb9eb3ab4a0dfeafe68 (patch)
treeb437d1ed0d3cb7e6a0a67e5dd30ef19abbedb95e /libiberty/memcmp.c
parent4e6667ac4f987fecbcf576513c70485a4718712e (diff)
downloadfsf-binutils-gdb-39423523167c47f72822dbb9eb3ab4a0dfeafe68.zip
fsf-binutils-gdb-39423523167c47f72822dbb9eb3ab4a0dfeafe68.tar.gz
fsf-binutils-gdb-39423523167c47f72822dbb9eb3ab4a0dfeafe68.tar.bz2
merge from gcc
Diffstat (limited to 'libiberty/memcmp.c')
-rw-r--r--libiberty/memcmp.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/libiberty/memcmp.c b/libiberty/memcmp.c
index 0fd21ca..d8d3997 100644
--- a/libiberty/memcmp.c
+++ b/libiberty/memcmp.c
@@ -2,16 +2,17 @@
This function is in the public domain. */
/*
-NAME
- memcmp -- compare two memory regions
-SYNOPSIS
- int memcmp (const void *from, const void *to, size_t count)
+@deftypefn Supplemental int memcmp (const void *@var{x}, const void *@var{y}, size_t @var{count})
+
+Compares the first @var{count} bytes of two areas of memory. Returns
+zero if they are the same, a value less than zero if @var{x} is
+lexically less than @var{y}, or a value greater than zero if @var{x}
+is lexically greater than @var{y}. Note that lexical order is determined
+as if comparing unsigned char arrays.
+
+@end deftypefn
-DESCRIPTION
- Compare two memory regions and return less than,
- equal to, or greater than zero, according to lexicographical
- ordering of the compared regions.
*/
#include <ansidecl.h>