Share this page

# Example: lrs_ebcdic_to_ascii

In the following example lrs_ebcdic_to_ascii converts the contents of socket0 from ebcdic to ascii.

    char *UserBufferPtr;

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

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: