MCPcopy Create free account
hub / github.com/apache/brpc / vsnprintfT

Function vsnprintfT

src/butil/strings/stringprintf.cc:29–34  ·  view source on GitHub ↗

Overloaded wrappers around vsnprintf and vswprintf. The buf_size parameter is the size of the buffer. These return the number of characters in the formatted string excluding the NUL terminator. If the buffer is not large enough to accommodate the formatted string without truncation, they return the number of characters that would be in the fully-formatted string (vsnprintf, and vswprintf on Window

Source from the content-addressed store, hash-verified

27// return the number of characters that would be in the fully-formatted string
28// (vsnprintf, and vswprintf on Windows), or -1 (vswprintf on POSIX platforms).
29inline int vsnprintfT(char* buffer,
30 size_t buf_size,
31 const char* format,
32 va_list argptr) {
33 return butil::vsnprintf(buffer, buf_size, format, argptr);
34}
35
36#if !defined(OS_ANDROID)
37inline int vsnprintfT(wchar_t* buffer,

Callers 1

StringAppendVTFunction · 0.85

Calls 2

vsnprintfFunction · 0.85
vswprintfFunction · 0.85

Tested by

no test coverage detected