array_length(3)

array_length3

Get number of allocated members in array

Usage

#include <libowfat/array.h>

int64 array_length(array* x,uint64 membersize);

array x;
int64 members = array_length(&x,sizeof(t));

Overview

array_length returns the number of initialized bytes in x, divided by the size of t. In other words, array_get will succeed for positions 0 through array_length-1; it will fail for position array_length.

If x is unallocated, array_length and array_bytes return 0.

Releases

7 releases since Debian 7 (Wheezy); the text changed 1 time.

  1. 7–11
  2. 12–13

From libowfat-dev 0.32-5 in Debian 13 (Trixie). Parsed by carta from the page's man source.