Guardian Procedure Calls Reference Manual
CONVERTASCIIEBCDIC Procedure
Summary
Syntax for C Programmers
Syntax for TAL Programmers
Parameters
Summary
The CONVERTASCIIEBCDIC procedure translates the 256 EBCDIC encodings to and from the 256
eight-bit ASCII encodings. For more information, see Appendix K: Character Set Translation.
Syntax for C Programmers
#include <cextdecs(CONVERTASCIIEBCDIC)>
void CONVERTASCIIEBCDIC ( const char *buffer
,const unsigned short count
,const short translation );
Syntax for TAL Programmers
CALL CONVERTASCIIEBCDIC ( buffer ! i
,count ! i
,translation ); ! i
Parameters
buffer
input
STRING .EXT:ref:*
points to the start of an array of characters to be translated.
count
input
INT:value
specifies the number of characters to convert, in the range 0 through 65535.
translation
input
INT:value
specifies these translations:
None0
EBCDIC to ASCII1
ASCII to EBCDIC2
All other values have undefined effects.
CONVERTASCIIEBCDIC Procedure 217