Ignore:
Timestamp:
Aug 16, 2003, 6:59:22 PM (22 years ago)
Author:
bird
Message:

binutils v2.14 - offical sources.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/GNU/src/binutils/libiberty/memcmp.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.1.1.2
    r608 r609  
    33
    44/*
    5 NAME
    6         memcmp -- compare two memory regions
    75
    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})
    107
    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.
     8Compares the first @var{count} bytes of two areas of memory.  Returns
     9zero if they are the same, a value less than zero if @var{x} is
     10lexically less than @var{y}, or a value greater than zero if @var{x}
     11is lexically greater than @var{y}.  Note that lexical order is determined
     12as if comparing unsigned char arrays.
     13
     14@end deftypefn
     15
    1516*/
    1617
    1718#include <ansidecl.h>
    18 #ifdef __STDC__
     19#ifdef ANSI_PROTOTYPES
    1920#include <stddef.h>
    2021#else
     
    2324
    2425int
    25 DEFUN(memcmp, (str1, str2, count),
    26       const PTR str1 AND const PTR str2 AND size_t count)
     26memcmp (str1, str2, count)
     27     const PTR str1;
     28     const PTR str2;
     29     size_t count;
    2730{
    2831  register const unsigned char *s1 = (const unsigned char*)str1;
Note: See TracChangeset for help on using the changeset viewer.