1: #ifndef lint
   2: static char sccsid[] = "@(#)wwclose.c	3.13 4/24/85";
   3: #endif
   4: 
   5: /*
   6:  * Copyright (c) 1983 Regents of the University of California,
   7:  * All rights reserved.  Redistribution permitted subject to
   8:  * the terms of the Berkeley Software License Agreement.
   9:  */
  10: 
  11: #include "ww.h"
  12: #include <signal.h>
  13: 
  14: wwclose(w)
  15: register struct ww *w;
  16: {
  17:     wwindex[w->ww_index] = 0;
  18:     if (w->ww_pty >= 0)
  19:         (void) close(w->ww_pty);
  20:     if (w->ww_socket >= 0)
  21:         (void) close(w->ww_socket);
  22:     wwfree((char **)w->ww_win, w->ww_w.t);
  23:     wwfree((char **)w->ww_buf, w->ww_b.t);
  24:     if (w->ww_fmap != 0)
  25:         wwfree((char **)w->ww_fmap, w->ww_w.t);
  26:     free((char *)(w->ww_nvis + w->ww_w.t));
  27:     if (w->ww_ob != 0)
  28:         free(w->ww_ob);
  29:     free((char *)w);
  30: }

Defined functions

wwclose defined in line 14; used 1 times

Defined variables

sccsid defined in line 2; never used
Last modified: 1987-02-17
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 2095
Valid CSS Valid XHTML 1.0 Strict