ARENA_VECTOR(3) Library Functions Manual ARENA_VECTOR(3)

ARENA_VECTOR_INIT, ARENA_VECTOR_ALLOC, ARENA_VECTOR_CALLOCarena allocated vector structure

#include <libks/arena-vector.h>

void
ARENA_VECTOR_INIT(struct arena_scope *scope, type *v, size_t len);

type *
ARENA_VECTOR_ALLOC(type *v);

type *
ARENA_VECTOR_CALLOC(type *v);

The () function behaves like () with the exception of allocating the vector from an arena. The vector will have an initial capacity of at least len elements.

The () function behaves like () but is guaranteed to never return NULL. In case of failure, the process is terminated.

The () function behaves like () but is guaranteed to never return NULL. In case of failure, the process is terminated.

arena(3), vector(3)

Anton Lindqvist <anton@basename.se>

OpenBSD 7.8 March 26, 2024 ARENA_VECTOR(3)