MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / wd_snprintf

Function wd_snprintf

cpp/webdriver-server/server.cc:35–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33#if defined(WINDOWS)
34#include <cstdarg>
35inline int wd_snprintf(char* str, size_t size, const char* format, ...) {
36 va_list args;
37 va_start(args, format);
38 int count = _vscprintf(format, args);
39 if (str != NULL && size > 0) {
40 count = _vsnprintf_s(str, size, _TRUNCATE, format, args);
41 }
42 va_end(args);
43 return count;
44}
45#define snprintf wd_snprintf
46#endif
47

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected