limb 0.2.0

2024-01-09

genalloc_remove(3)
limb manual
genalloc_remove(3)

NAME

genalloc_remove - remove data from a genalloc

SYNOPSIS

#include <limb/genalloc.h>
int genalloc_remove(type, genalloc *ga, int offset, int num)

DESCRIPTION

The genalloc_remove() macro removes num elements from the genalloc ga starting with element offsetth.

The member len will be adjusted and data afterwards moved as needed, but no re-allocation occurs.

RETURN VALUE

The genalloc_remove() function returns 1 on success. Otherwise it returns 0 and sets errno to indicate the error.

ERRORS

The genalloc_remove() function may fail for the errors described for stralloc_remove(3).

SEE ALSO

genalloc_shrink(3)

limb 0.1.0
2023-07-24
genalloc_remove(3)