Implemented wxPrintf.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2126 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -111,6 +111,25 @@ wxChar * WXDLLEXPORT wxSetlocale(int category, const wxChar *locale)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef wxNEED_WX_STDIO_H
|
#ifdef wxNEED_WX_STDIO_H
|
||||||
|
int WXDLLEXPORT wxPrintf(const wxChar *fmt, ...)
|
||||||
|
{
|
||||||
|
va_list argptr;
|
||||||
|
int ret;
|
||||||
|
|
||||||
|
va_start(argptr, fmt);
|
||||||
|
ret = wxVprintf(fmt, argptr);
|
||||||
|
va_end(argptr);
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
|
int WXDLLEXPORT wxVprintf(const wxChar *fmt, va_list argptr)
|
||||||
|
{
|
||||||
|
wxString str;
|
||||||
|
str.PrintfV(fmt,argptr);
|
||||||
|
printf("%s",(const char*)str.mb_str());
|
||||||
|
return str.Len();
|
||||||
|
}
|
||||||
|
|
||||||
int WXDLLEXPORT wxSprintf(wxChar *buf, const wxChar *fmt, ...)
|
int WXDLLEXPORT wxSprintf(wxChar *buf, const wxChar *fmt, ...)
|
||||||
{
|
{
|
||||||
va_list argptr;
|
va_list argptr;
|
||||||
|
Reference in New Issue
Block a user