1 |
schoenebeck |
3223 |
<html> |
2 |
|
|
<head> |
3 |
|
|
<meta name="author" content="Christian Schoenebeck"> |
4 |
|
|
<title>array_equal() function</title> |
5 |
|
|
<meta name="description" content="Check whether two arrays are equal."> |
6 |
|
|
</head> |
7 |
|
|
<body> |
8 |
|
|
<h1>array_equal()</h1> |
9 |
|
|
<p> |
10 |
|
|
Compares the two arrays passed to this function and returns true |
11 |
|
|
if the arrays are identical, otherwise it returns false (<code lang="nksp">0</code>). |
12 |
|
|
The arrays are considered to be identical if they have the same size |
13 |
|
|
(same amount of elements) and all elements of the two arrays are |
14 |
|
|
exactly the same. |
15 |
|
|
</p> |
16 |
|
|
|
17 |
|
|
<h3>Function Prototype</h3> |
18 |
|
|
<p/> |
19 |
|
|
<code lang="nksp"> |
20 |
|
|
array_equal(??a??, ??b??) |
21 |
|
|
</code> |
22 |
|
|
|
23 |
|
|
<h3>Arguments</h3> |
24 |
|
|
<table> |
25 |
|
|
<tr> |
26 |
|
|
<th>Argument Name</th> <th>Data Type</th> <th>Description</th> |
27 |
|
|
</tr> |
28 |
|
|
<tr> |
29 |
|
|
<td><code>??a??</code></td> |
30 |
|
|
<td>Integer Array Variable</td> |
31 |
|
|
<td>First integer array variable to be compared.<br> |
32 |
|
|
[required]</td> |
33 |
|
|
</tr> |
34 |
|
|
<tr> |
35 |
|
|
<td><code>??b??</code></td> |
36 |
|
|
<td>Integer Array Variable</td> |
37 |
|
|
<td>Second integer array variable to be compared.<br> |
38 |
|
|
[required]</td> |
39 |
|
|
</tr> |
40 |
|
|
</table> |
41 |
|
|
|
42 |
|
|
<h3>Return Value</h3> |
43 |
|
|
<table> |
44 |
|
|
<tr> |
45 |
|
|
<th>Description</th> <th>Data Type</th> |
46 |
|
|
</tr> |
47 |
|
|
<tr> |
48 |
|
|
<td>Boolean result of the array comparison.</td> |
49 |
|
|
<td>Integer Number</td> |
50 |
|
|
</tr> |
51 |
|
|
</table> |
52 |
|
|
|
53 |
|
|
<h3>Examples</h3> |
54 |
|
|
<p>None yet.</p> |
55 |
|
|
|
56 |
|
|
<h3>See also</h3> |
57 |
|
|
<p><code>sort()</code>, <code>search()</code><p> |
58 |
|
|
|
59 |
|
|
<h3>Availability</h3> |
60 |
|
|
<p>Since LinuxSampler 2.0.0.svn52.<p> |
61 |
|
|
|
62 |
|
|
</body> |
63 |
|
|
</html> |