140865Sbostic /*-
2*62092Sbostic  * Copyright (c) 1979, 1993
3*62092Sbostic  *	The Regents of the University of California.  All rights reserved.
440865Sbostic  *
540865Sbostic  * %sccs.include.redist.c%
640865Sbostic  */
72123Smckusick 
840865Sbostic #ifndef lint
9*62092Sbostic static char sccsid[] = "@(#)CATCHERR.c	8.1 (Berkeley) 06/06/93";
1040865Sbostic #endif /* not lint */
112123Smckusick 
122123Smckusick #include "h00vars.h"
132123Smckusick 
CATCHERR(err,todo)142123Smckusick CATCHERR(err, todo)
152123Smckusick 	long err;		/* error to be caught */
162123Smckusick 	struct formalrtn todo;	/* procedure to call to catch error */
172123Smckusick {
183434Smckusic 	if (todo.fbn == 1)
193434Smckusic 		_entry[err].fentryaddr = todo.fentryaddr;
202123Smckusick 	else
212123Smckusick 		fputs("procedure not at level 1", stderr);
222123Smckusick }
23