File: array_equal.3

package info (click to toggle)
libowfat 0.34-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,288 kB
  • sloc: ansic: 20,181; makefile: 16
file content (32 lines) | stat: -rw-r--r-- 783 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
.TH array_equal 3
.SH NAME
array_equal \- compare two arrays for equality
.SH SYNTAX
.B #include <libowfat/array.h>

int \fBarray_equal\fP(array* \fIx\fR,array* \fIy\fR);

  array \fIx\fR;
  array \fIy\fR;
  array_equal(&\fIx\fR,&\fIy\fR);

.SH DESCRIPTION
array_equal returns nonzero if x and y have the same contents: i.e.,

.sp 1
.IP \(bu
\fIx\fR and \fIy\fR are both unallocated; or
.IP \(bu
\fIx\fR is unallocated, \fIy\fR is allocated, and \fIy\fR has no
initialized bytes; or
.IP \(bu
\fIx\fR is allocated, \fIy\fR is unallocated, and \fIx\fR has no
initialized bytes; or
.IP \(bu
\fIx\fR and \fIy\fR are both allocated and have the same sequence of
initialized bytes.
.PP

Otherwise it returns 0.
.SH "SEE ALSO"
array_allocate(3), array_get(3), array_fail(3), array_reset(3)