| 249 | //_CRTIMP int __cdecl __MINGW_NOTHROW _vscwprintf (const wchar_t*, __VALIST); |
| 250 | |
| 251 | TCHAR* SU::TSprintfNB(const TCHAR * format, ...) { |
| 252 | va_list vaList; |
| 253 | va_start(vaList, format); |
| 254 | int size = TSprintfV(NULL, 0, format, vaList); |
| 255 | if (size < 1) { |
| 256 | va_end(vaList); |
| 257 | return NULL; |
| 258 | } |
| 259 | TCHAR * buffer = new TCHAR[size+1]; |
| 260 | /*int ret = */TSprintfV(buffer, size+1, format, vaList); |
| 261 | |
| 262 | va_end(vaList); |
| 263 | return buffer; |
| 264 | } |
| 265 | |
| 266 | int SU::TSprintf(TCHAR * buffer, size_t bufferSize, const TCHAR * format, ...) { |
| 267 | va_list vaList; |
nothing calls this directly
no outgoing calls
no test coverage detected