I would like to write the message to a char* instead of to stdout
Can someone tell me how to do this?Code:void QTUtility::error( char *msg,...)
{
va_list ap;
va_start(ap, msg);
fprintf(stdout, "\n\nERROR: ");
vfprintf(stdout, msg, ap);
fprintf(stdout, "\n\n");
va_end(ap);
}
Thanks
Mark