array_truncate man page on Alpinelinux

Man page or keyword search:  
man Server   18016 pages
apropos Keyword Search (all sections)
Output format
Alpinelinux logo
[printable version]

array_truncate(3)					     array_truncate(3)

NAME
       array_truncate - reduce number of initialized bytes

SYNTAX
       #include <array.h>

       void array_truncate(array* x, uint64 membersize, int64 len);

	 array_truncate(&x,sizeof(t),len);

DESCRIPTION
       array_truncate  reduces the number of initialized bytes in x to exactly
       len*sizeof(t). If the number of	initialized  bytes  was	 already  this
       small  (or  smaller), array_truncate has no effect. If len is negative,
       array_truncate has no effect. If x is unallocated,  array_truncate  has
       no effect. If x has failed, array_truncate has no effect.

       array_truncate does not change the allocation in x. If you want to free
       the memory used by x, use array_reset.

SEE ALSO
       array_allocate(3),   array_get(3),    array_fail(3),    array_trunc(3),
       array_reset(3)

							     array_truncate(3)
[top]

List of man pages available for Alpinelinux

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net