ListCreate

Top  Previous  Next

Syntax

POINTER = ListCreate

Description

Creates a new linked list.

Parameters

None

Return value

A pointer to the head of an empty linked list.

Remarks

Add nodes to the list using ListAdd or ListAddHead.

See Also: ListAdd, ListAddHead

Example usage

mylist = ListCreate()
FOR x = 0 to 10
     temp = ListAdd(mylist, NEW(INT,1))
     #<INT>temp = x
NEXT x