1 /* 2 * Copyright (c) 1983 Regents of the University of California. 3 * All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Edward Wang at The University of California, Berkeley. 7 * 8 * %sccs.include.redist.c% 9 */ 10 11 #ifndef lint 12 static char sccsid[] = "@(#)wwend.c 3.17 (Berkeley) 08/16/92"; 13 #endif /* not lint */ 14 15 #include "ww.h" 16 #include "tt.h" 17 18 /*ARGSUSED*/ 19 wwend(exit) 20 { 21 xxend(); 22 (void) wwsettty(0, &wwoldtty); 23 #ifdef TERMINFO 24 if (exit) 25 wwterminfoend(); 26 #endif 27 } 28 29 void 30 wwquit() 31 { 32 wwend(1); 33 exit(1); 34 } 35