File: array_bytes.3

package info (click to toggle)
libowfat 0.34-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,288 kB
  • sloc: ansic: 20,181; makefile: 16
file content (19 lines) | stat: -rw-r--r-- 479 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
.TH array_bytes 3
.SH NAME
array_bytes \- get number of allocated members in array
.SH SYNTAX
.B #include <libowfat/array.h>

int64 \fBarray_bytes\fP(array* \fIx\fR);

  array \fIx\fR;
  int64 bytes = array_bytes(&\fIx\fR);

.SH DESCRIPTION
array_bytes returns the number of initialized bytes in \fIx\fR, without
regard to \fIt\fR.

If \fIx\fR is unallocated, array_length and array_bytes return 0.

.SH "SEE ALSO"
array_allocate(3), array_get(3), array_fail(3), array_length(3)