• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/toolchains/hndtools-armeabi-2013.11/share/doc/arm-arm-none-eabi/html/libc/
1<html lang="en">
2<head>
3<title>bcmp - Untitled</title>
4<meta http-equiv="Content-Type" content="text/html">
5<meta name="description" content="Untitled">
6<meta name="generator" content="makeinfo 4.13">
7<link title="Top" rel="start" href="index.html#Top">
8<link rel="up" href="Strings.html#Strings" title="Strings">
9<link rel="next" href="bcopy.html#bcopy" title="bcopy">
10<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
11<meta http-equiv="Content-Style-Type" content="text/css">
12<style type="text/css"><!--
13  pre.display { font-family:inherit }
14  pre.format  { font-family:inherit }
15  pre.smalldisplay { font-family:inherit; font-size:smaller }
16  pre.smallformat  { font-family:inherit; font-size:smaller }
17  pre.smallexample { font-size:smaller }
18  pre.smalllisp    { font-size:smaller }
19  span.sc    { font-variant:small-caps }
20  span.roman { font-family:serif; font-weight:normal; } 
21  span.sansserif { font-family:sans-serif; font-weight:normal; } 
22--></style>
23<link rel="stylesheet" type="text/css" href="../cs.css">
24</head>
25<body>
26<div class="node">
27<a name="bcmp"></a>
28<p>
29Next:&nbsp;<a rel="next" accesskey="n" href="bcopy.html#bcopy">bcopy</a>,
30Up:&nbsp;<a rel="up" accesskey="u" href="Strings.html#Strings">Strings</a>
31<hr>
32</div>
33
34<h3 class="section">5.1 <code>bcmp</code>&mdash;compare two memory areas</h3>
35
36<p><a name="index-bcmp-373"></a><strong>Synopsis</strong>
37<pre class="example">     #include &lt;strings.h&gt;
38     int bcmp(const void *<var>s1</var>, const void *<var>s2</var>, size_t <var>n</var>);
39     
40</pre>
41   <p><strong>Description</strong><br>
42This function compares not more than <var>n</var> bytes of the
43object pointed to by <var>s1</var> with the object pointed to by <var>s2</var>.
44
45   <p>This function is identical to <code>memcmp</code>.
46
47   <p><br>
48<strong>Returns</strong><br>
49The function returns an integer greater than, equal to or
50less than zero 	according to whether the object pointed to by
51<var>s1</var> is greater than, equal to or less than the object
52pointed to by <var>s2</var>.
53
54   <p><br>
55<strong>Portability</strong><br>
56<code>bcmp</code> requires no supporting OS subroutines.
57
58   <p><br>
59
60   </body></html>
61
62