L3TOL - convert three-byte integers to longs.

(Compatible with UNIX System V)

Usage:

void l3tol();
l3tol(lp,cp,N);

Where:

long *lp;
points to a piece of memory big enough to hold N long integers. The converted integers will be stored here.
char *cp;
points to a list of N three-byte integers. This is actually a character string containing 3*N characters.
int N;
is the number of three-byte integers to be converted.

Description:

The "l3tol" function converts three-byte integers into longs. Three-byte integers let you "pack" values into a character string and thereby save some space.

Character strings and integers are ordered in different ways on different machines. Therefore programs using "l3tol" and its partner "ltol3" may be non-portable.

See Also:

expl c lib ltol3

Copyright © 1996, Thinkage Ltd.