This is a code sample to get an idea how to add a helper function to log output messages to your solution. This is useful if you are going to use one of the C++ Code Samples

static void LogPrint(Hdmclient_ILog * /* pLog */, bool /* rewrite */, const char * /* format */, IN ...)
{
    va_list argList;
    va_start(argList, format);
  
    if(pLog)
        pLog->LogPrintV(format, argList);
  
    {
        char str[4096] = {};
  
    #if defined(HDMCLIENT_LINUX) | defined(HDMCLIENT_MACOS)
        vsnprintf(str, sizeof(str), format, argList);
    #else
        _vsnprintf(str, sizeof(str), format, argList);
    #endif
  
        OutputStr(rewrite, false, "%s", str);
    }
  
    va_end(argList);
}

If you have found a spelling error, please, notify us by selecting that text and pressing Ctrl+Enter.