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_reset - deallocate array

Description

       If x is allocated, array_reset frees the region that x points to, and switches x to being unallocated.

       If x x has failed, array_reset simply switches x to being unallocated.

       If x x is unallocated, array_reset has no effect.

Name

       array_reset - deallocate array

See Also

array_allocate(3), array_get(3), array_fail(3), array_trunc(3), array_truncate(3)

                                                                                                  array_reset(3)

Syntax

#include<libowfat/array.h>

       void array_reset(array* x);

         array x;
         array_reset(&x);

See Also