array_equal(3)

array_equal3

Compare two arrays for equality

Usage

#include <libowfat/array.h>

int array_equal(array* x,array* y);

array x;
array y;
array_equal(&x,&y);

Overview

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

•

x and y are both unallocated; or

•

x is unallocated, y is allocated, and y has no initialized bytes; or

•

x is allocated, y is unallocated, and x has no initialized bytes; or

•

x and y are both allocated and have the same sequence of initialized bytes.

Otherwise it returns 0.

Releases

7 releases since Debian 7 (Wheezy); the text changed 1 time.

  1. 7–11
  2. 12–13

From libowfat-dev 0.32-5 in Debian 13 (Trixie). Parsed by carta from the page's man source.