logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

array_equal - compare two arrays for equality

Description

       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.

Name

       array_equal - compare two arrays for equality

See Also

array_allocate(3), array_get(3), array_fail(3), array_reset(3)

                                                                                                  array_equal(3)

Syntax

#include<libowfat/array.h>

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

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

See Also