| iMatix home page
| << | < | > | >>
SFL Logo SFL
Version 2.10

 

tree_first

#include "sfltree.h"
void *tree_first (void *tree)

Synopsis

Finds and returns the first node in a (sub-)tree.

Source Code - (sfltree.c)

{
    TREE
       *current;

    if ((!tree)
    ||  (tree == TREE_NULL))
        return NULL;

    current = tree;
    while (current-> left != TREE_NULL)
        current = current-> left;

    return current;
}

| << | < | > | >> iMatix Copyright © 1996-99 iMatix Corporation