IsNodeB

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

Synopsis

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

Description

This macro is used to test whether the specified node is an actual node or is the head (beginning-of-list) anchor. Use this macro when traversing a list from tail to head. When traversing a list from head to tail, use the IsNode() 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 head (beginning-of-list) anchor.

Note: This macro currently returns TRUE for any node that is not the head 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(), IsNode(), LastNode(), NextNode(), PrevNode(), ScanList()