IsNode

Checks that a node pointer is not the head list anchor.

Synopsis

bool IsNode( const List *l, const Node *n )

Description

This macro is used to test whether the specified node is an actual node or is the tail (end-of-list) anchor. Use this macro when traversing a list from head to tail. When traversing a list from tail to head, use the IsNodeB() macro.

Arguments

l
A pointer to the list containing the node to check.
n
A pointer to the node to check.

Return Value

The macro returns TRUE if the node is an actual node or FALSE if it is the tail (end-of-list) anchor.

Note: This macro currently returns TRUE for any node that is not the tail anchor, whether or not the node is in the specified list.

Implementation

Macro implemented in list.h V20.

Associated Files

list.h
ANSI C Macro Definition

See Also

FirstNode(), IsListEmpty(), IsNodeB(), LastNode(), NextNode(), PrevNode(), ScanList()