MCPcopy Create free account
hub / github.com/Kitware/VTK / vfprintf

Function vfprintf

ThirdParty/fmt/vtkfmt/vtkfmt/printf.h:580–588  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

578
579template <typename Char>
580auto vfprintf(std::FILE* f, basic_string_view<Char> fmt,
581 typename vprintf_args<Char>::type args) -> int {
582 auto buf = basic_memory_buffer<Char>();
583 detail::vprintf(buf, fmt, args);
584 size_t size = buf.size();
585 return std::fwrite(buf.data(), sizeof(Char), size, f) < size
586 ? -1
587 : static_cast<int>(size);
588}
589
590/**
591 * Formats `args` according to specifications in `fmt` and writes the output

Callers 15

FT_MessageFunction · 0.85
FT_MessageFunction · 0.85
FT_PanicFunction · 0.85
FT_MessageFunction · 0.85
FT_PanicFunction · 0.85
unixWarningHandlerFunction · 0.85
unixErrorHandlerFunction · 0.85
Win32WarningHandlerFunction · 0.85
Win32ErrorHandlerFunction · 0.85
H5FD__subfiling_logFunction · 0.85
LIBXML_ATTR_FORMATFunction · 0.85

Calls 3

vprintfFunction · 0.85
sizeMethod · 0.45
dataMethod · 0.45

Tested by 5

test_logFunction · 0.68
warningDebugFunction · 0.68
errorDebugFunction · 0.68
fatalErrorDebugFunction · 0.68
test_logFunction · 0.68