OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [newlib-1.18.0/] [newlib-1.18.0-or32-1.0rc2/] [newlib/] [libc/] [string/] [bcmp.c] - Diff between revs 207 and 520

Only display areas with differences | Details | Blame | View Log

Rev 207 Rev 520
/*
/*
FUNCTION
FUNCTION
        <<bcmp>>---compare two memory areas
        <<bcmp>>---compare two memory areas
 
 
INDEX
INDEX
        bcmp
        bcmp
 
 
ANSI_SYNOPSIS
ANSI_SYNOPSIS
        #include <string.h>
        #include <string.h>
        int bcmp(const void *<[s1]>, const void *<[s2]>, size_t <[n]>);
        int bcmp(const void *<[s1]>, const void *<[s2]>, size_t <[n]>);
 
 
TRAD_SYNOPSIS
TRAD_SYNOPSIS
        #include <string.h>
        #include <string.h>
        int bcmp(<[s1]>, <[s2]>, <[n]>)
        int bcmp(<[s1]>, <[s2]>, <[n]>)
        const void *<[s1]>;
        const void *<[s1]>;
        const void *<[s2]>;
        const void *<[s2]>;
        size_t <[n]>;
        size_t <[n]>;
 
 
DESCRIPTION
DESCRIPTION
        This function compares not more than <[n]> bytes of the
        This function compares not more than <[n]> bytes of the
        object pointed to by <[s1]> with the object pointed to by <[s2]>.
        object pointed to by <[s1]> with the object pointed to by <[s2]>.
 
 
        This function is identical to <<memcmp>>.
        This function is identical to <<memcmp>>.
 
 
RETURNS
RETURNS
        The function returns an integer greater than, equal to or
        The function returns an integer greater than, equal to or
        less than zero  according to whether the object pointed to by
        less than zero  according to whether the object pointed to by
        <[s1]> is greater than, equal to or less than the object
        <[s1]> is greater than, equal to or less than the object
        pointed to by <[s2]>.
        pointed to by <[s2]>.
 
 
PORTABILITY
PORTABILITY
<<bcmp>> requires no supporting OS subroutines.
<<bcmp>> requires no supporting OS subroutines.
 
 
QUICKREF
QUICKREF
        bcmp ansi pure
        bcmp ansi pure
*/
*/
 
 
#include <string.h>
#include <string.h>
 
 
int
int
_DEFUN (bcmp, (m1, m2, n),
_DEFUN (bcmp, (m1, m2, n),
        _CONST void *m1 _AND
        _CONST void *m1 _AND
        _CONST void *m2 _AND
        _CONST void *m2 _AND
        size_t n)
        size_t n)
 
 
{
{
  return memcmp (m1, m2, n);
  return memcmp (m1, m2, n);
}
}
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.