Exemple #1
0
int CSys::Echo( oexCSTRW x_pFmt )
{//_STT();
	if ( !x_pFmt )
		return 0;
	CStr8 s = oexStrWToStr( x_pFmt );
#if defined( oexUNICODE )
	CUtil::AddOutput( x_pFmt, s.Length(), oexTRUE );
#else
	CUtil::AddOutput( s.Ptr(), s.Length(), oexTRUE );
#endif
	return ::puts( s.Ptr() );
}
Exemple #2
0
int CSys::vPrint( oexCSTR8 x_pFmt, oexVaList pArgs )
{   //_STT();
    CStr8 s;
    s.vFmt( x_pFmt, pArgs );
    Echo( s.Ptr() );
    return s.Length();
}
Exemple #3
0
int CSys::Print( oexCSTR8 x_pFmt, ... )
{   //_STT();
    CStr8 s;
    oexVaList ap;
    oexVaStart( ap, x_pFmt );
    s.vFmt( x_pFmt, (va_list)ap );
    oexVaEnd( ap );
    Echo( s.Ptr() );
    return s.Length();
}