* NAME: node->init() * DESCRIPTION: construct an empty node */
| 48 | * DESCRIPTION: construct an empty node |
| 49 | */ |
| 50 | void 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() |
no outgoing calls
no test coverage detected