Tree_Clear

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Core Language > Data Structures > AVL Tree >

Tree_Clear

 

Description

 

Clear (remove) all key/data pairs present into the AVL Tree.

 

Syntax

 

pTree = Tree_Clear(pTree)

 

Returns

 

Number: the same pTree passes as parameter

 

Parameters

 

Name

Type

Optional

Meaning

pTree

Number

No

Handle of an AVL Tree returned by Tree_New

 

Remarks

 

After this function execution, AVL Tree handle (pHash) remain a valid empty AVL Tree with all the actual characteristics but without any node.

 

Restrictions

 

See also

 

Examples