1: /*	@(#)swab.c	2.1	SCCS id keyword	*/
   2: /*
   3:  * Swap bytes in 16-bit [half-]words
   4:  */
   5: 
   6: swab(pf, pt, n)
   7: register short *pf, *pt;
   8: register n;
   9: {
  10: 
  11:     n /= 2;
  12:     while (--n >= 0) {
  13:         *pt++ = (*pf << 8) + ((*pf >> 8) & 0377);
  14:         pf++;
  15:     }
  16: }

Defined functions

swab defined in line 6; used 9 times
Last modified: 1983-06-04
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 540
Valid CSS Valid XHTML 1.0 Strict