MCPcopy Create free account
hub / github.com/ashkulz/NppFTP / TSprintfNB

Method TSprintfNB

src/StringUtils.cpp:251–264  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

249//_CRTIMP int __cdecl __MINGW_NOTHROW _vscwprintf (const wchar_t*, __VALIST);
250
251TCHAR* 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
266int SU::TSprintf(TCHAR * buffer, size_t bufferSize, const TCHAR * format, ...) {
267 va_list vaList;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected