Skip to content

RemTail

snayaksnayak edited this page May 14, 2013 · 2 revisions

NAME

RemTail - remove the tail node from a list

SYNOPSIS

node = RemTail(list);
struct Node *RemTail(struct List *);

FUNCTION

Remove the last node from a list, and return a pointer to it. If
the list is empty, return zero.

WARNING

This function does not arbitrate for access to the list.  The
calling task must be the owner of the involved list.

INPUTS

list - a pointer to the target list header

RESULT

node - the node removed or zero when empty list

SEE ALSO

[[AddHead]], [[AddTail]], [[Enqueue]], [[Insert]], [[Remove]], [[RemHead]], [[RemTail]]
Clone this wiki locally