Share this page

# Example: lrc_get_bstr_sub

In the following example lrc_get_bstr_sub returns a subset of the original string str1, 7 characters from the beginning. This includes the nulls embedded in the string.

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

    BSTR str2 = lrc_get_bstr_sub(str1, 7);

    lrc_print_bstr(str2); /* prints 7 chars "abc\x00def" */

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