File: mtree_parent.3

package info (click to toggle)
librecast 0.11.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,760 kB
  • sloc: ansic: 31,144; asm: 28,570; sh: 3,164; makefile: 713; python: 70
file content (35 lines) | stat: -rw-r--r-- 758 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
.TH MTREE_PARENT 3 2023-07-23 "LIBRECAST" "Librecast Programmer's Manual"
.SH NAME
mtree_parent \- return node number of parent node
.SH LIBRARY
Librecast library
.RI ( liblibrecast ", " \-llibrecast )
.SH SYNOPSIS
.nf
.B #include <librecast/mtree.h>
.PP
.BI "size_t mtree_parent(size_t " node ");"
.fi
.PP
Compile and link with \fI\-llibrecast\fP.
.SH DESCRIPTION
The
.BR mtree_nnode
function returns the node number of the parent of
.IR node.
.PP
This calculation is independent of the tree, and is implemented as a macro.
.PP
Nodes are numbered from 0 = root.
.SH RETURN VALUE
.BR mtree_parent ()
returns the number of the parent node.
.PP
.SH ERRORS
None.
.PP
.SH SEE ALSO
.BR mtree_init (3),
.BR mtree_free (3),
.BR mtree_build (3),
.BR mtree_child (3)