MCPcopy Create free account
hub / github.com/Kitware/CMake / writef

Function writef

Utilities/cmcppdap/src/io.cpp:247–256  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

245}
246
247bool writef(const std::shared_ptr<Writer>& w, const char* msg, ...) {
248 char buf[2048];
249
250 va_list vararg;
251 va_start(vararg, msg);
252 vsnprintf(buf, sizeof(buf), msg, vararg);
253 va_end(vararg);
254
255 return w->write(buf, strlen(buf));
256}
257
258} // namespace dap

Callers 1

cmDebuggerAdapterMethod · 0.85

Calls 2

strlenFunction · 0.50
writeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…