char* ExportStringf(const char* pString,...) { char TxtOut[GMAX_STRING]; if ( strlen( pString ) >= GMAX_STRING ) { GDebug_BreakGlobal("Formatted string for ExportString is too long"); } va_list v; va_start( v, pString ); int iChars = vsprintf((char*)TxtOut,pString, v ); return ExportString( TxtOut ); }
// create a html-file as string with default optimization void QSgml::ExportString(QString *HtmlString) { ExportString(HtmlString,2,2); }