1: #if defined(LIBC_SCCS) && !defined(lint)
   2: static char sccsid[] = "@(#)getw.c	5.2.1 (2.11BSD GTE) 1/1/94";
   3: #endif
   4: 
   5: #include <stdio.h>
   6: 
   7: getw(iop)
   8: register FILE *iop;
   9: {
  10:     register i;
  11:     register char *p;
  12:     int w;
  13: 
  14:     p = (char *)&w;
  15:     for (i=sizeof(int); --i>=0;)
  16:         *p++ = getc(iop);
  17:     if (feof(iop))
  18:         return(EOF);
  19:     return(w);
  20: }
  21: 
  22: #ifdef pdp11
  23: long
  24: getlw(iop)
  25: register FILE *iop;
  26: {
  27:     register i;
  28:     register char *p;
  29:     long w;
  30: 
  31:     p = (char *)&w;
  32:     for (i=sizeof(long); --i>=0;)
  33:         *p++ = getc(iop);
  34:     if (feof(iop))
  35:         return(EOF);
  36:     return(w);
  37: }
  38: #endif

Defined functions

getlw defined in line 23; never used

Defined variables

sccsid defined in line 2; never used
Last modified: 1994-01-11
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 571
Valid CSS Valid XHTML 1.0 Strict