Standards / Extensions | C or C++ | Dependencies |
---|---|---|
z/OS® UNIX | both |
#include <unistd.h>
int __etoa_l(char *bufferptr, int leng);
The __etoa_l() function converts leng EBCDIC bytes in the buffer pointed to by bufferptr to their ISO8859-1 equivalent. The conversion is performed using the codeset page associated with the current locale.
The argument bufferptr points to a buffer containing the EBCDIC bytes to be converted to their ISO8859-1 equivalent. The input buffer is treated as a sequence of bytes, and all bytes in the input buffer are converted, including any imbedded NULLs.
If successful, __etoa_l() converts the input EBCDIC bytes to their equivalent ISO8859-1 value, and returns the number of bytes converted.