MCPcopy Create free account
hub / github.com/davidgiven/fluxengine / n_init

Function n_init

dep/hfsutils/libhfs/node.c:50–66  ·  view source on GitHub ↗

* NAME: node->init() * DESCRIPTION: construct an empty node */

Source from the content-addressed store, hash-verified

48 * DESCRIPTION: construct an empty node
49 */
50void n_init(node *np, btree *bt, int type, int height)
51{
52 np->bt = bt;
53 np->nnum = (unsigned long) -1;
54
55 np->nd.ndFLink = 0;
56 np->nd.ndBLink = 0;
57 np->nd.ndType = type;
58 np->nd.ndNHeight = height;
59 np->nd.ndNRecs = 0;
60 np->nd.ndResv2 = 0;
61
62 np->rnum = -1;
63 np->roff[0] = 0x00e;
64
65 memset(&np->data, 0, sizeof(np->data));
66}
67
68/*
69 * NAME: node->new()

Callers 3

bt_spaceFunction · 0.85
bt_insertFunction · 0.85
hfs_formatFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected