Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

_a2e, _e2a - Convert from ASCII to EBCDIC and EBCDIC to ASCII

&pagelevel(4)&pagelevel

Definition

#include <ascii_ebcdic.h>

char*_a2e (char* z);

char*_e2a (char* z);

The functions _a2e and _e2a convert the (null-terminated) string z passed as a parameter
from ASCII to EBCDIC and vice versa. The conversion takes place on the spot with the help
of conversion tables. The corresponding data areas therefore have to be writable.

The conversion tables are declared as follows:

unsigned char _a2e_tab[256];
unsigned char _e2a_tab[256];

Parameters

char* z

String in ASCII or EBCDIC encoding to be converted

Return val.

The string z passed as a parameter, after its conversion to EBCDIC or ASCII code

See also

_a2e_n, _e2a_n, _a2e_max, _e2a_max, _a2e_dup, _e2a_dup, _a2e_dup_n, _e2a_dup_n