-/*-
- * LstForeach.c --
- * Perform a given function on all elements of a list.
+/*
+ * Copyright (c) 1988, 1989, 1990, 1993
+ * The Regents of the University of California. All rights reserved.
*
- * Copyright (c) 1988 by University of California Regents
+ * This code is derived from software contributed to Berkeley by
+ * Adam de Boor.
*
- * Permission to use, copy, modify, and distribute this
- * software and its documentation for any purpose and without
- * fee is hereby granted, provided that the above copyright
- * notice appears in all copies. Neither the University of California nor
- * Adam de Boor makes any representations about the suitability of this
- * software for any purpose. It is provided "as is" without
- * express or implied warranty.
+ * %sccs.include.redist.c%
*/
+
#ifndef lint
-static char *rcsid =
-"$Id: lstForEach.c,v 1.8 89/11/14 16:59:42 adam Exp $ SPRITE (Berkeley)";
-#endif lint
+static char sccsid[] = "@(#)lstForEach.c 8.2 (Berkeley) %G%";
+#endif /* not lint */
+
+/*-
+ * LstForeach.c --
+ * Perform a given function on all elements of a list.
+ */
#include "lstInt.h"
void
Lst_ForEach (l, proc, d)
Lst l;
- register int (*proc)();
+ register int (*proc) __P((ClientData, ClientData));
register ClientData d;
{
Lst_ForEachFrom(l, Lst_First(l), proc, d);