Share this page

# Example: lrs_free_buffer

In the following example, lrs_free_buffer frees the buffer.

    char *ActualBuffer;

    int NumberOfBytes;

    lrs_receive("socket2", "buf20", LrsLastArg);

    /* Get the size and location of the data within the buffer. */

    lrs_get_last_received_buffer("socket2", &ActualBuffer, &NumberOfBytes);

    lr_output_message("The last buffer contains:%s\n", ActualBuffer);

    lr_output_message("The last buffer's size is:%d\n", NumberOfBytes);

    lrs_free_buffer(ActualBuffer);

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: