1array_equal(3) Library Functions Manual array_equal(3)
2
3
4
6 array_equal - compare two arrays for equality
7
9 #include <array.h>
10
11 int array_equal(array* x,array* y);
12
13 array x;
14 array y;
15 array_equal(&x,&y);
16
17
19 array_equal returns nonzero if x and y have the same contents: i.e.,
20
21
22
23 · x and y are both unallocated; or
24
25 · x is unallocated, y is allocated, and y has no initialized
26 bytes; or
27
28 · x is allocated, y is unallocated, and x has no initialized
29 bytes; or
30
31 · x and y are both allocated and have the same sequence of ini‐
32 tialized bytes.
33
34 Otherwise it returns 0.
35
37 array_allocate(3), array_get(3), array_fail(3), array_reset(3)
38
39
40
41 array_equal(3)