Share this page

# lrc_get_bstr_length

Type Conversion From String

Returns the length of a BSTR type string.

    int lrc_get_bstr_length( BSTR str );

str | A string of type BSTR.

lrc_get_bstr_length returns the length of a BSTR type string. BSTR strings may include nulls.

It is used primarily for debugging purposes.

## Return Values

lrc Return Values

## Parameterization

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

## Example

In the following example the length returned from lrc_get_bstr_length will be 12. This includes the nulls within the string.

    BSTR str = lrc_BSTR1("abc\x00def\x00\x00ghi", 12);

    int len = lrc_get_bstr_length(str);

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