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

# array\_trunc(3)

reduce number of initialized bytes

## NAME

array\_trunc - reduce number of initialized bytes

## SYNTAX

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

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

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

## DESCRIPTION

array\_trunc is the same as array\_truncate with *len* equal to 0.

## SEE ALSO

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