Sample code for 30+ languages & platforms
Unicode C

StringBuilder GetBetween

Demonstrates the GetBetween method.

Chilkat Unicode C Downloads

Unicode C
#include <C_CkStringBuilderW.h>

void ChilkatSample(void)
    {
    HCkStringBuilderW sb;
    const wchar_t *companyName;

    sb = CkStringBuilderW_Create();
    CkStringBuilderW_Append(sb,L"<company><name>Chilkat Software</name></company>");

    //  For example, to get the company name in the string above...
    companyName = CkStringBuilderW_getBetween(sb,L"<name>",L"</name>");
    wprintf(L"Company Name = %s\n",companyName);


    CkStringBuilderW_Dispose(sb);

    }