BCDASC - convert characters from BCD to ASCII.
Alternate Entry Name: .BCDAS
Usage:
B:
output = bcdasc( output, input, count [, offset ] );
C:
char *bcdasc(char *output, int *input,
int count [, int offset] );
Where:
- output
- is a vector which will receive the ASCII characters.
- input
- is a vector containing the BCD to be converted, packed
six characters per word.
- count
- is the number of BCD characters to convert.
- offset
- is an optional numeric argument. If "offset"
equals N, BCDASC will begin its conversion at the Nth
character of "input". If no "offset"
is specified, the default is zero and conversion will
begin with the start of "input".
Description:
BCDASC converts up to "count" BCD characters
contained in the vector "input" into ASCII, and stores
them as a B string in "output". Any trailing blanks
appearing in "input" are removed during the translation
process.
This routine, and all software in the UW Tools package, will
convert BCD characters to lower case ASCII unless otherwise
stated.
See Also:
- expl b lib print
- for another way to convert from BCD into an ASCII string.
Copyright © 1996, Thinkage Ltd.