Open topic with navigation
In the following example lrs_ebcdic_to_ascii converts the contents of socket0 from ebcdic to ascii.
/* Get the whole last received buffer (the offset parameter is ignored) in EBCDIC format */
UserBufferPtr = lrs_get_received_buffer("socket0", 0, -1, "ebcdic");
/* Convert the buffer to ASCII format */
UserBufferPtr = lrs_ebcdic_to_ascii("socket0", UserBufferPtr, lrs_get_user_buffer_size("socket0"));