home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / vol_300 / 347_01 / tavl_rst.c < prev    next >
C/C++ Source or Header  |  1991-04-27  |  782b  |  25 lines

  1. /*:file:version:date: "%n    V.%v;  %f"
  2.  * "TAVL_RST.C    V.6;  27-Apr-91,12:15:46"
  3.  *
  4.  *  Module:  tavl_reset()
  5.  *  Purpose: Prepare TAVL tree for sequential processing. A TAVL tree
  6.  *           may be viewed as a circular list with a head node, which
  7.  *           contains no data.  "tavl_reset()" returns a pointer to the
  8.  *           tree's head node, which can then be passed to the routines
  9.  *           "tavl_succ" and "tavl_pred".
  10.  *
  11.  *  Released to the PUBLIC DOMAIN
  12.  *
  13.  *  author:                 Bert C. Hughes
  14.  *                          200 N.Saratoga
  15.  *                          St.Paul, MN 55104
  16.  *                          Compuserve 71211,577
  17.  */
  18.  
  19. #include "tavltree.h"
  20.  
  21. TAVL_nodeptr tavl_reset(TAVL_treeptr tree)
  22. {
  23.     return tree->head;
  24. }
  25.