stralloc_remove(3)
limb manual
stralloc_remove(3)
NAME
stralloc_remove - remove data from a stralloc
SYNOPSIS
#include <limb/stralloc.h>
int stralloc_remove(stralloc *sa, size_t offset, size_t len)
DESCRIPTION
The stralloc_remove
() function removes data from the stralloc sa
starting at
byte offset
and for len
bytes.
The member len
will be adjusted and data afterwards moved as needed, but no
re-allocation occurs.
RETURN VALUE
The stralloc_remove
() function returns 1 on success. Otherwise it returns 0
and sets errno
to indicate the error.
ERRORS
The stralloc_remove
() function may fail if :
EINVAL
The offset
is too high.