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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [newlib-1.17.0/] [newlib/] [libc/] [string/] [bcmp.c] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 148 jeremybenn
/*
2
FUNCTION
3
        <<bcmp>>---compare two memory areas
4
 
5
INDEX
6
        bcmp
7
 
8
ANSI_SYNOPSIS
9
        #include <string.h>
10
        int bcmp(const void *<[s1]>, const void *<[s2]>, size_t <[n]>);
11
 
12
TRAD_SYNOPSIS
13
        #include <string.h>
14
        int bcmp(<[s1]>, <[s2]>, <[n]>)
15
        const void *<[s1]>;
16
        const void *<[s2]>;
17
        size_t <[n]>;
18
 
19
DESCRIPTION
20
        This function compares not more than <[n]> bytes of the
21
        object pointed to by <[s1]> with the object pointed to by <[s2]>.
22
 
23
        This function is identical to <<memcmp>>.
24
 
25
RETURNS
26
        The function returns an integer greater than, equal to or
27
        less than zero  according to whether the object pointed to by
28
        <[s1]> is greater than, equal to or less than the object
29
        pointed to by <[s2]>.
30
 
31
PORTABILITY
32
<<bcmp>> requires no supporting OS subroutines.
33
 
34
QUICKREF
35
        bcmp ansi pure
36
*/
37
 
38
#include <string.h>
39
 
40
int
41
_DEFUN (bcmp, (m1, m2, n),
42
        _CONST void *m1 _AND
43
        _CONST void *m2 _AND
44
        size_t n)
45
 
46
{
47
  return memcmp (m1, m2, n);
48
}

powered by: WebSVN 2.1.0

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