char *UserBufferPtr;
/* 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",
UserBufferPtr,
lrs_get_user_buffer_size("socket0"));