Standards / Extensions | C or C++ | Dependencies |
---|---|---|
z/OS® UNIX | both |
#include <unistd.h>
int __etoa(char *string);
The __etoa() function converts an EBCDIC character string string to its ISO8859-1 equivalent. The conversion is performed using the codeset page associated with the current locale. The input character string up to, but not including, the NULL character is changed from the current locale to an ISO8859-1 representation.
The argument string points to the EBCDIC character string to be converted to its ISO8859-1 equivalent.
If successful, __etoa() converts the input EBCDIC string to its equivalent ISO8859-1 value, and returns the length of the converted string.