l3tol, ltol3
Purpose
Converts between 3-byte integers and long integers.
Library
Standard C Library (libc.a)
Syntax
void l3tol (lp, cp, n) void ltol3 (cp, lp, n)
long *lp; char *cp;
char *cp; long *lp;
int n; int n;
Description
The l3tol subroutine converts a list of n 3-byte integers
packed into a character string pointed to by the cp
parameter into a list of long integers pointed to by the
lp parameter.
The ltol3 subroutine performs the reverse conversion,
from long integers (lp) to 3-byte integers (cp).
These functions are useful for file system maintenance
where the block numbers are 3 bytes long.
Warning: The numerical values of the long integers are
machine-dependent because of possible differences in byte
ordering.
Related Information
In this book: "fs."