_ASCBCD - convert ASCII string to BCD.

(Not in the ANSI standard)

Usage:

_ascbcd(bcdptr,N,ascptr);

Where:

void *bcdptr;
is a BCD pointer as produced by "_bcdptr". See "expl c lib _bcdptr" for details. The area of memory indicated by "bcdptr" should be large enough to hold the converted ASCII string.
int N;
is the number of ASCII characters to be converted. If this is greater than the length of the ASCII string, the BCD string will be padded with blanks.
char *ascptr;
points to the ASCII string to be converted.

Description:

"_ascbcd" converts an ASCII string to an equivalent BCD string.

See Also:

expl c lib _bcdptr

expl c lib _bcdasc

Copyright © 2000, Thinkage Ltd.