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