source: trunk/libs/newlib/src/newlib/libc/string/bcmp.c @ 543

Last change on this file since 543 was 444, checked in by satin@…, 6 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 773 bytes
Line 
1/*
2FUNCTION
3        <<bcmp>>---compare two memory areas
4
5INDEX
6        bcmp
7
8SYNOPSIS
9        #include <strings.h>
10        int bcmp(const void *<[s1]>, const void *<[s2]>, size_t <[n]>);
11
12DESCRIPTION
13        This function compares not more than <[n]> bytes of the
14        object pointed to by <[s1]> with the object pointed to by <[s2]>.
15
16        This function is identical to <<memcmp>>.
17
18RETURNS
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]>.
23
24PORTABILITY
25<<bcmp>> requires no supporting OS subroutines.
26
27QUICKREF
28        bcmp ansi pure
29*/
30
31#include <string.h>
32#include <strings.h>
33
34int
35bcmp (const void *m1,
36        const void *m2,
37        size_t n)
38
39{
40  return memcmp (m1, m2, n);
41}
Note: See TracBrowser for help on using the repository browser.