/*Copyright (C) 1992, 1994 by Thomas Glen Smith. All Rights Reserved.*/
/* treesrch APL2 V1.0.0 ************************************************
* Called by aplload to search of tree of trees. *
***********************************************************************/
#define INCLUDES APLCB+TREE
#include "includes.h"
void *treesrch(name)
char *name;
{
Treenode;
extern Treelist treehdr;
Treelist symp;
Avlnode avlhit;
if (treehdr == NULL)
return(NULL); /* nothing to search */
avlhit = treenode(name); /* find node, if it exists */
if (avlhit == NULL)
return(NULL); /* not found */
return(avlhit->avlleaf);
}