|
|
1.1 root 1: /*
2: * Convert an array of filesystem 3 byte
3: * numbers to longs. This routine, unlike the old one,
4: * is independent of the order of bytes in a long.
5: * Bytes have 8 bits, though.
6: */
7: l3tol(lp, cp, nl)
8: register long *lp;
9: register unsigned char *cp;
10: register unsigned nl;
11: {
12: register long l;
13:
14: if (nl != 0) {
15: do {
16: l = (long)cp[0] << 16;
17: l |= (long)cp[1];
18: l |= (long)cp[2] << 8;
19: cp += 3;
20: *lp++ = l;
21: } while (--nl);
22: }
23: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.