LTOL3 - convert longs to three-byte integers.

(Compatible with UNIX System V)

Usage:

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

Where:

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

Description:

The "ltol3" function converts longs into three-byte integers. 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 "ltol3" and its partner "l3tol" may be non-portable.

See Also:

expl c lib l3tol

Copyright © 1996, Thinkage Ltd.