ASCBCD - convert an ASCII string to a BCD vector.

Alternate Entry Name: .ASCBC

Usage:

B:
   output = ascbcd( output, count, input [, offset ] );
C:
   int *ascbcd(int *output, int count, char *input,
               [int offset]);

Where:

output
is a vector which will receive the BCD string packed six characters per word.
count
is the number of ASCII characters to convert.
input
is the ASCII string to be converted.
offset
is an optional numeric argument. If "offset" equals N, ASCBCD begins its conversion at the Nth character of "input". If no "offset" is specified, the default is zero and conversion begins with the start of "input".

Description:

ASCBCD converts the ASCII characters in the string "input" into their BCD equivalents and places the result in the vector "output". If there are less than "count" characters in "input", "output" will be padded on the end with BCD blanks. If "input" is longer than "count" characters, only "count" characters will be converted.

Copyright © 1996, Thinkage Ltd.