EBCASC - convert string from EBCDIC to ASCII.

Alternate Entry Name: .EBCAS

Usage:

B:
   str = ebcasc( asciistr, ebcdicstr, len );
C:
   char *ebcasc(char *asciistr, const char *ebcdicstr,
                int len);

Where:

asciistr
points to a vector of words where the ASCII string is to be stored.
ebcdicstr
points to a vector of words containing nine-bit EBCDIC characters.
len
is the number of EBCDIC characters in "ebcdicstr".
str
points to the same location as "asciistr".

Description:

EBCASC converts the nine-bit EBCDIC characters of "ebcdicstr" into nine-bit ASCII characters, and stores the result in the location pointed to by "asciistr". A total of "len" EBCDIC characters are converted. Trailing blanks in "ebcdicstr" are removed. EBCASC returns a pointer to the resulting ASCII string.

EBCASC performs its conversion from EBCDIC to ASCII by means of a Move-with-translate instruction, using the external translate table located at "&ebc.as".

See Also:

expl b lib externals

Copyright © 1996, Thinkage Ltd.