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