* Copyright (c) 1988, 1989, 1990, 1993
* The Regents of the University of California. All rights reserved.
* This code is derived from software contributed to Berkeley by
* %sccs.include.redist.c%
static char sccsid
[] = "@(#)lstIsEmpty.c 8.2 (Berkeley) %G%";
* A single function to decide if a list is empty
*-----------------------------------------------------------------------
* Return TRUE if the given list is empty.
* TRUE if the list is empty, FALSE otherwise.
* A list is considered empty if its firstPtr == NilListNode (or if
* the list itself is NILLIST).
*-----------------------------------------------------------------------
return ( ! LstValid (l
) || LstIsEmpty(l
));