clean up bcm bases and add primecell peripheral defines
[AROS.git] / compiler / clib / bcmp.c
blobf87bf9d8bd8a6cf78c61372affb703488f422731
1 /*
2 Copyright © 1995-2012, The AROS Development Team. All rights reserved.
3 $Id$
5 POSIX.1-2001 function bcmp().
6 Function is deprecated and removed from POSIX.1-2008
7 */
9 #define bcmp bcmp_inline
10 #include <strings.h>
11 #undef bcmp
13 /*****************************************************************************
15 NAME */
16 #include <strings.h>
18 int bcmp (
20 /* SYNOPSIS */
21 const void * s1,
22 const void * s2,
23 size_t n)
25 /* FUNCTION
26 Compare the first n bytes of s1 and s2.
28 INPUTS
29 s1 - The first byte array to be compared
30 s2 - The second byte array to be compared
31 n - How many bytes to compare
33 RESULT
35 NOTES
37 EXAMPLE
39 BUGS
41 SEE ALSO
43 INTERNALS
45 ******************************************************************************/
47 return memcmp(s1, s2, n);
48 } /* bcmp */