# 2.11BSD#431 - /usr/src/lib/libc/stdio/putw.c

##### Functions

    putlw             X
    putw              X

       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
putw defined in line 7; used 22 times

- in /usr/src/bin/ld/ld.c line 536-538(2), 1476-1478(2), 1518-1520(2), 2003
- in /usr/src/games/hunt/answer.c line 77
- in /usr/src/games/monop/initdeck.c line 116, 133
- in /usr/src/games/sail/misc.c line 182-184(2)
- in /usr/src/ucb/PORT/pascal/src/p2put.c line 667
- in /usr/src/ucb/PORT/pascal/src/savenl.c line 208, 251, 298
- in /usr/src/usr.bin/find/code.c line 70
- in /usr/src/usr.bin/refer/hunt2.c line 270
- in /usr/src/usr.bin/refer/inv6.c line 39, 55, 61, 76

#### 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: 396 |