Cygwin: mmap: allow remapping part of an existing anonymous mapping
[newlib-cygwin.git] / newlib / libc / string / bcmp.c
blob747f8af51d0d164fb2b5e01a89ab169ec2ac7df6
1 /*
2 FUNCTION
3 <<bcmp>>---compare two memory areas
5 INDEX
6 bcmp
8 SYNOPSIS
9 #include <strings.h>
10 int bcmp(const void *<[s1]>, const void *<[s2]>, size_t <[n]>);
12 DESCRIPTION
13 This function compares not more than <[n]> bytes of the
14 object pointed to by <[s1]> with the object pointed to by <[s2]>.
16 This function is identical to <<memcmp>>.
18 RETURNS
19 The function returns an integer greater than, equal to or
20 less than zero according to whether the object pointed to by
21 <[s1]> is greater than, equal to or less than the object
22 pointed to by <[s2]>.
24 PORTABILITY
25 <<bcmp>> requires no supporting OS subroutines.
27 QUICKREF
28 bcmp ansi pure
31 #include <string.h>
32 #include <strings.h>
34 int
35 bcmp (const void *m1,
36 const void *m2,
37 size_t n)
40 return memcmp (m1, m2, n);