l3tol, ltol3 --
convert between 3-byte integers and long integers
cc . . . -lc
void l3tol (lp, cp, n)
void ltol3 (cp, lp, n)
converts three-byte integers to long integers
converts long integers to three-byte integers
The l3tol function converts a list of
n three-byte integers packed into a character string
pointed to by cp
into a list of long integers pointed to by
performs the reverse conversion from long integers
to three-byte integers
These functions are useful for file-system maintenance
where the block numbers are three bytes long.
Because of possible differences in byte ordering,
the numerical values of the long integers are machine-dependent.
are not part of any currently supported standard;
they are an extension of AT&T System V provided by the Santa Cruz Operation.
© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003