C8TO9 - convert 8-bit input into 9-bit bytes.
Usage:
B:
c8to9( output, outpos, ndwds, input );
C:
void c8to9(char *output, int outpos, int ndwds,
const void *input);
Where:
- output
- is a pointer to a region of memory where the converted
data should be stored.
- outpos
- is a character offset within "output" where the
first character of converted data should be stored.
- ndwds
- is the number of machine words of input to be converted.
- input
- is a vector of 8-bit data.
Description:
C8TO9 converts a vector of data into a character string. It
does this by getting 8 bits at a time from "input" and
storing them as a 9-bit byte in "output". The bottom 8
bits of the byte contain the input bits, and the high order bit
of the byte is turned off (0).
See Also:
- expl b lib c9to8
- for the inverse operation.
Copyright © 1996, Thinkage Ltd.