Guardian Procedure Calls Reference Manual (G06.25+)

Guardian Procedure Calls (C)
Guardian Procedure Calls Reference Manual522629-013
3-142
CONVERTASCIIEBCDIC Procedure
CONVERTASCIIEBCDIC Procedure
Summary
Syntax for C Programmers
Syntax for TAL Programmers
Parameters
Summary
This procedure translates the 256 EBCDIC encodings to and from the 256 8-bit ASCII
encodings. For more information, refer to Appendix K, Character Set Translation
.
Syntax for C Programmers
Syntax for TAL Programmers
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 the following translations:
0: None
1: EBCDIC to ASCII
2: ASCII to EBCDIC
#include <cextdecs(CONVERTASCIIEBCDIC)>
void CONVERTASCIIEBCDIC ( const char* buffer
,const unsigned short count
,const short translation);
CALL CONVERTASCIIEBCDIC ( buffer !i
,count ! i
,translation); ! i