* 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
[] = "@(#)lstLast.c 8.2 (Berkeley) %G%";
* Return the last element of a list
*-----------------------------------------------------------------------
* Return the last node on the list l.
* The requested node or NILLNODE if the list is empty.
*-----------------------------------------------------------------------
if (!LstValid(l
) || LstIsEmpty (l
)) {
return ((LstNode
)((List
)l
)->lastPtr
);