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 | /* |
---|
2 | FUNCTION |
---|
3 | <<bcmp>>---compare two memory areas |
---|
4 | |
---|
5 | INDEX |
---|
6 | bcmp |
---|
7 | |
---|
8 | SYNOPSIS |
---|
9 | #include <strings.h> |
---|
10 | int bcmp(const void *<[s1]>, const void *<[s2]>, size_t <[n]>); |
---|
11 | |
---|
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]>. |
---|
15 | |
---|
16 | This function is identical to <<memcmp>>. |
---|
17 | |
---|
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]>. |
---|
23 | |
---|
24 | PORTABILITY |
---|
25 | <<bcmp>> requires no supporting OS subroutines. |
---|
26 | |
---|
27 | QUICKREF |
---|
28 | bcmp ansi pure |
---|
29 | */ |
---|
30 | |
---|
31 | #include <string.h> |
---|
32 | #include <strings.h> |
---|
33 | |
---|
34 | int |
---|
35 | bcmp (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.