/* * Copyright (c) 1983 Regents of the University of California. * All rights reserved. * * This code is derived from software contributed to Berkeley by * Edward Wang at The University of California, Berkeley. * * %sccs.include.redist.c% */ #ifndef lint static char sccsid[] = "@(#)wwend.c 3.18 (Berkeley) 11/10/92"; #endif /* not lint */ #include "ww.h" #include "tt.h" /*ARGSUSED*/ wwend(exit) { if (tt.tt_checkpoint) { (void) alarm(0); wwdocheckpoint = 0; } xxend(); (void) wwsettty(0, &wwoldtty); #ifdef TERMINFO if (exit) wwterminfoend(); #endif } void wwquit() { wwend(1); exit(1); }