* 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
[] = "@(#)lstEnQueue.c 8.2 (Berkeley) %G%";
* Treat the list as a queue and place a datum at its end
*-----------------------------------------------------------------------
* Add the datum to the tail of the given list.
* SUCCESS or FAILURE as returned by Lst_Append.
* the lastPtr field is altered all the time and the firstPtr field
* will be altered if the list used to be empty.
*-----------------------------------------------------------------------
if (LstValid (l
) == FALSE
) {
return (Lst_Append (l
, Lst_Last(l
), d
));