Share this page

# Example: lrs_ascii_to_ebcdic

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.

    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"));

Tips to improve your search results... VuGen Function Reference Version 25.1-25.3 Function Reference 25.1-25.3 All View Local Help Center View Online Help Center Version: