lrt_tpfree

Buffer Manipulation Functions

Frees a typed buffer.

void lrt_tpfree( char *ptr );

ptr Pointer to the buffer.

The lrt_tpfree function frees a buffer that was previously obtained by either lrt_tpallocor lrt_tprealloc.

Return Values

If the pointer is NULL, no action occurs. If it does not point to a typed buffer, the results will be undefined. Since the function is declared as void, no value is returned.

Parameterization

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

Example

In the following example, the lrt_tpfree statement frees the data_0 buffer.

Copy code
/* free the buffer called data_0*/
lrt_tpfree(data_0);