1: /* $Header$ */
   2: 
   3: /*
   4:  * Binary tree definitions
   5:  *
   6:  * Author: Peter J. Nicklin
   7:  */
   8: 
   9: /*
  10:  * The basic node for a binary tree.
  11:  */
  12: typedef struct tnode
  13:     {
  14:     char *key;          /* points to a key */
  15:     int count;          /* number of occurrences */
  16:     struct tnode *left;     /* left child */
  17:     struct tnode *right;        /* right child */
  18:     } TREE;
  19: /*
  20:  * Functions defined for binary trees
  21:  */
  22: extern int treesearch();        /* tree search */
  23: extern TREE *tree();            /* tree search and insert */
  24: extern TREE *treerm();          /* tree deletion */

Defined struct's

tnode defined in line 12; used 4 times

Defined typedef's

TREE defined in line 18; used 2 times
Last modified: 1985-07-03
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 587
Valid CSS Valid XHTML 1.0 Strict