1: #ifndef lint
   2: static char sccsid[] = "@(#)wwerror.c	3.3 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: 
  13: char *
  14: wwerror()
  15: {
  16:     extern errno;
  17:     extern char *sys_errlist[];
  18: 
  19:     switch (wwerrno) {
  20:     case WWE_NOERR:
  21:         return "No error";
  22:     case WWE_SYS:
  23:         return sys_errlist[errno];
  24:     case WWE_NOMEM:
  25:         return "Out of memory";
  26:     case WWE_TOOMANY:
  27:         return "Too many windows";
  28:     case WWE_NOPTY:
  29:         return "Out of pseudo-terminals";
  30:     case WWE_SIZE:
  31:         return "Bad window size";
  32:     case WWE_BADTERM:
  33:         return "Unknown terminal type";
  34:     case WWE_CANTDO:
  35:         return "Can't run window on this terminal";
  36:     default:
  37:         return "Unknown error";
  38:     }
  39: }

Defined functions

Defined variables

sccsid defined in line 2; never used
Last modified: 1985-04-25
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 858
Valid CSS Valid XHTML 1.0 Strict