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