void SafeStrAppend(char buf[], const uint32_t maxBufSize, uint32_t &offset, const char *format, ...)
{
    if (offset < maxBufSize)
    {
        va_list ap;
        va_start(ap, format);
        offset += vsprintf(buf + offset, format, ap);
        va_end(ap);
    }
}

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-07
猜你喜欢
  • 2022-01-07
  • 2022-01-22
  • 2021-05-31
  • 2022-12-23
  • 2021-12-14
  • 2021-11-28
  • 2022-12-23
相关资源
相似解决方案