Share this page

# lrt_tprealloc

Buffer Manipulation Functions

Modifies the size of a typed buffer.

char *lrt_tprealloc( char *ptr, long size );

ptr | Pointer to the buffer.
size | New buffer size.

The lrt_tprealloc function changes the size of a typed buffer.

## Return Values

If the function succeeds, it returns a pointer to the new (possibly moved) buffer. If lrt_tprealloc fails, it sets the error code in tperrno.

## Parameterization

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

## Example

In the following example, the lrt_tprealloc statement changes the size of the data_0 buffer from 1024 to 512.

Copy code

    /* */
    data_0 = lrt_tpalloc("FML", "", 1024);
    .
    .
    lrt_tprealloc(data_0, 512);

Tips to improve your search results... VuGen Function Reference Version 26.1-26.3 Function Reference 26.1-26.3 All View Local Help Center View Online Help Center Version: