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

Defined functions

putlw defined in line 20; 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: 2100
Valid CSS Valid XHTML 1.0 Strict