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_fail - switch array to have failed

Description

       If x is allocated, array_fail frees the region that x points to, and switches x to have failed.

       If x is unallocated, array_fail simply switches x to have failed.

       If x has already failed, array_fail has no effect.

Name

       array_fail - switch array to have failed

See Also

array_allocate(3), array_reset(3)

                                                                                                   array_fail(3)

Syntax

#include<libowfat/array.h>

       void array_fail(array* x);

         array x;
         array_fail(&x);

See Also