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

# array\_bytes(3)

get number of allocated members in array

## NAME

array\_bytes - get number of allocated members in array

## SYNTAX

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

int64 **array\_bytes**(array\* *x*);

  array *x*;\
   int64 bytes = array\_bytes(&*x*);

## DESCRIPTION

array\_bytes returns the number of initialized bytes in *x*, without regard to *t*.

If *x* is unallocated, array\_length and array\_bytes return 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\_length(3)](/array_length/3.md)
