Jump to content

[Help] how to know size of a string with an arguments?


Guest Anti

Recommended Posts

void Log::outChar(const char * str, ... )
{

   if (!str)
       return;

   if(charLogfile)
   {
       va_list ap;
       outTimestamp(charLogfile);
       va_start(ap, str);
       vfprintf(charLogfile, str, ap);
       fprintf(charLogfile, "\\n" );
       va_end(ap);
       fflush(charLogfile);
   }
}

I need to know size of completed str (with args) which send into log file.

Link to comment
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use