man rarray_len (Fonctions bibliothèques) - get/set array length.

NAME

rarray_len, rarray_set_len - get/set array length.

SYNOPSIS

#include <roy.h>

unsigned int rarray_len (RArray *array);

void rarray_set_len (RArray *array, unsigned int len);

DESCRIPTION

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.

SEE ALSO