packed_buffer_copy_data_c

	status.i4.v = packed_buffer_copy_data_c(packed_buffer.s.r,
						max_length.i4.v,
						data_length.i4.r, data.g.v)

	This routine will copy data from a packed data buffer.

	packed_buffer	packed data buffer to copy
	max_length	maximum number of bytes to copy
			(If a value of 0 is passed for this argument,
			 the entire packed data buffer will be copied.)
	data_length	returned number of bytes copied
	data		returned copied data

	This function returns ACNET status values as follows:

	OK			success
	CLIB_INVARG		invalid data length

	This function requires the following include files:

	cbslib_h

	Related functions:

	packed_buffer_size, packed_buffer_init, packed_buffer_rewind,
	packed_buffer_fill_c, packed_buffer_add_c, packed_buffer_get_c,
	packed_buffer_next_entry_info, packed_buffer_free

	C/C++ usage:

	char	data[MAX_LENGTH];
	int	status;
	int	max_length = MAX_LENGTH;
	int	data_length;
	PACKED_BUFFER_DATA	packed_buffer;

	status = packed_buffer_copy_data_c(&packed_buffer,max_length,
					   &data_length,(char *) data);