|
|
DataMuseum.dkPresents historical artifacts from the history of: Commodore CBM-900 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Commodore CBM-900 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - download
Length: 438 (0x1b6)
Types: TextFile
Notes: UNIX file
Names: »l3tol.c«
└─⟦f27320a65⟧ Bits:30001972 Commodore 900 hard disk image with partial source code
└─⟦f4b8d8c84⟧ UNIX Filesystem
└─⟦this⟧ »libc/gen/l3tol.c«
/*
* Convert an array of filesystem 3 byte
* numbers to longs. This routine, unlike the old one,
* is independent of the order of bytes in a long.
* Bytes have 8 bits, though.
*/
l3tol(lp, cp, nl)
register long *lp;
register unsigned char *cp;
register unsigned nl;
{
register long l;
if (nl != 0) {
do {
l = (long)cp[0] << 16;
l |= (long)cp[1];
l |= (long)cp[2] << 8;
cp += 3;
*lp++ = l;
} while (--nl);
}
}