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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [newlib-1.10.0/] [newlib/] [libc/] [string/] [bcmp.c] - Diff between revs 1010 and 1765

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

Rev 1010 Rev 1765
/*
/*
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 char *<[s1]>, const char *<[s2]>, size_t <[n]>);
        int bcmp(const char *<[s1]>, const char *<[s2]>, size_t <[n]>);
 
 
TRAD_SYNOPSIS
TRAD_SYNOPSIS
        #include <string.h>
        #include <string.h>
        int bcmp(<[s1]>, <[s2]>, <[n]>)
        int bcmp(<[s1]>, <[s2]>, <[n]>)
        char *<[s1]>;
        char *<[s1]>;
        char *<[s2]>;
        char *<[s2]>;
        size_t <[n]>;
        size_t <[n]>;
 
 
DESCRIPTION
DESCRIPTION
        This function compares not more than <[n]> characters of the
        This function compares not more than <[n]> characters 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 char *m1 _AND
        _CONST char *m1 _AND
        _CONST char *m2 _AND
        _CONST char *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.