1array_truncate(3)          Library Functions Manual          array_truncate(3)
2
3
4

NAME

6       array_truncate - reduce number of initialized bytes
7

SYNTAX

9       #include <array.h>
10
11       void array_truncate(array* x, uint64 membersize, int64 len);
12
13         array_truncate(&x,sizeof(t),len);
14
15

DESCRIPTION

17       array_truncate  reduces the number of initialized bytes in x to exactly
18       len*sizeof(t). If the number of  initialized  bytes  was  already  this
19       small  (or  smaller), array_truncate has no effect. If len is negative,
20       array_truncate has no effect. If x is unallocated,  array_truncate  has
21       no effect. If x has failed, array_truncate has no effect.
22
23       array_truncate does not change the allocation in x. If you want to free
24       the memory used by x, use array_reset.
25
26

SEE ALSO

28       array_allocate(3),   array_get(3),    array_fail(3),    array_trunc(3),
29       array_reset(3)
30
31
32
33                                                             array_truncate(3)
Impressum