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_dup_n, _e2a_dup_n - Convert from ASCII to EBCDIC and EBCDIC to ASCII (BS2000)

&pagelevel(4)&pagelevel

Syntax

#include <ascii_ebcdic.h>

char*_a2e_dup__n (char* z, size_t n);

char*_e2a_dup_n (char* z, size_t n);

Description

These functions create a new string by taking z and converting precisely n characters from ASCII to EBCDIC and vice versa. The memory for the new string is allocated by means of malloc(), and it is up to the user to release it. If the available memory is insufficient, NULL is returned as the result. Otherwise, the new, null-terminated string is returned.
The conversion tables are declared as follows:
unsigned char _a2e_tab[256];
unsigned char _e2a_tab[256];

Return val.

New EBCDIC or ASCII string (if successful)

NULL, if there is insufficient memory

Note

The function are suitable for processing character arrays, which, in contrast to character strings, need not be terminated by the null byte (\0).

See also

_a2e(), _e2a(), _a2e_max(), _e2a_max(), _a2e_n(), _e2a_n(), _a2e_dup, _e2a_dup.