Example #1
0
void cprintf(const char *format, ...)
{
    char  buf[128];
    va_list args;
    va_start(args, format);
    vsprintf((char *)buf, (char const *)format, args);
    va_end(args);

	CRP_SEND_XDATA(g_chirpUsb, HSTRING(buf));
}
    int RefCount()
    {
        auto derivedThis = static_cast<WinStringT<CountWinStringBase>*>(this);
        HSTRING hstring = derivedThis->operator HSTRING();

        auto it = s_strings->find(hstring);
        if (it == s_strings->end())
            return 0;
        else
            return it->second;
    }