L3TOL(3,L) AIX Technical Reference L3TOL(3,L)
-------------------------------------------------------------------------------
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).
Note: These routines, which in the past were useful for file system
maintenance, are no longer needed as the AIX PS/2 and AIX/370 file
systems use 4-byte block numbers.
Warning: The numerical values of the long integers are machine-dependent
because of possible differences in byte ordering.
RELATED INFORMATION
In this book: "fs."
Processed November 7, 1990 L3TOL(3,L) 1