rarray_len3
Get/set array length.
Usage
#include <roy.h>
unsigned int rarray_len (RArray *array);
void rarray_set_len (RArray *array, unsigned int len);
Overview
rarray_len(3) returns the number of entries in the array array.
rarray_set_len(3) sets the number of entries in the array to len. If len is greater than the current number, the current entry is advanced to that position, but none of the entries over which it had to skip to get there are changed. If more blocks are required (see rarray_new(3)), then they are created as needed. If the rarray is to be shrunken, the current entry pointer is merely moved back.
Return value
rarray_len(3) returns the number of entries in the array.
rarray_set_len(3) returns no value.
Errors
These calls produce no errors.
Releases
2 releases since Debian 3.0 (Woody); the text changed 1 time.