daily update
[deliverable/binutils-gdb.git] / libiberty / memcmp.c
index 0fd21cad11edcee49c403dbac179ed7efccd56cf..d8d3997d0661c9ff52f37e53f12c907505f30072 100644 (file)
@@ -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>
This page took 0.036531 seconds and 4 git commands to generate.