---
name: "array_reset"
section: "3"
platform: "linux"
package: "libowfat-dev"
version: "0.32-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/array_reset"
---

# array\_reset(3)

deallocate array

## NAME

array\_reset - deallocate array

## SYNTAX

**#include \<libowfat/array.h\>**

void **array\_reset**(array\* *x*);

  array *x*;\
   array\_reset(&*x*);

## 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.

## SEE ALSO

[array\_allocate(3)](/array_allocate/3.md), [array\_get(3)](/array_get/3.md), [array\_fail(3)](/array_fail/3.md), [array\_trunc(3)](/array_trunc/3.md), [array\_truncate(3)](/array_truncate/3.md)
