Example: lrs_get_user_bufferBuffer Functions

Retrieves the contents of the user data buffer.

char *lrs_get_user_buffer( char *s_desc );
s_desc A descriptor identifying the socket.

The lrs_get_user_buffer function retrieves the contents of the user data buffer for the specified socket.

For more information on the functions that overwrite the user buffer, see one of the following functions:

In all of the above user buffer functions (except lrs_decimal_to_hex_string), use lrs_get_user_buffer_size to determine the actual buffer size before printing the buffer contents. Do not retrieve the entire buffer using a -1 as the length argument, and then try to print its contents. The reason for this is that VuGen may misinterpret the NULL characters within the buffer as a terminating string. Print functions include all the Message Functions such as lr_output_message.

Return Values

If this function fails, it returns NULL. If it succeeds, it returns a pointer to the converted buffer.


You cannot use standard parameterization for any arguments in this function.