Changeset 609 for branches/GNU/src/binutils/libiberty/memcmp.c
- Timestamp:
- Aug 16, 2003, 6:59:22 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GNU/src/binutils/libiberty/memcmp.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.1.1.2
r608 r609 3 3 4 4 /* 5 NAME6 memcmp -- compare two memory regions7 5 8 SYNOPSIS 9 int memcmp (const void *from, const void *to, size_t count) 6 @deftypefn Supplemental int memcmp (const void *@var{x}, const void *@var{y}, size_t @var{count}) 10 7 11 DESCRIPTION 12 Compare two memory regions and return less than, 13 equal to, or greater than zero, according to lexicographical 14 ordering of the compared regions. 8 Compares the first @var{count} bytes of two areas of memory. Returns 9 zero if they are the same, a value less than zero if @var{x} is 10 lexically less than @var{y}, or a value greater than zero if @var{x} 11 is lexically greater than @var{y}. Note that lexical order is determined 12 as if comparing unsigned char arrays. 13 14 @end deftypefn 15 15 16 */ 16 17 17 18 #include <ansidecl.h> 18 #ifdef __STDC__19 #ifdef ANSI_PROTOTYPES 19 20 #include <stddef.h> 20 21 #else … … 23 24 24 25 int 25 DEFUN(memcmp, (str1, str2, count), 26 const PTR str1 AND const PTR str2 AND size_t count) 26 memcmp (str1, str2, count) 27 const PTR str1; 28 const PTR str2; 29 size_t count; 27 30 { 28 31 register const unsigned char *s1 = (const unsigned char*)str1; -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.