MCPcopy Create free account
hub / github.com/fmtlib/fmt / vfprintf

Function vfprintf

include/fmt/printf.h:609–617  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

607
608template <typename Char>
609auto vfprintf(std::FILE* f, basic_string_view<Char> fmt,
610 typename vprintf_args<Char>::type args) -> int {
611 auto buf = basic_memory_buffer<Char>();
612 detail::vprintf(buf, fmt, args);
613 size_t size = buf.size();
614 return std::fwrite(buf.data(), sizeof(Char), size, f) < size
615 ? -1
616 : static_cast<int>(size);
617}
618
619/**
620 * Formats `args` according to specifications in `fmt` and writes the output

Callers 3

TESTFunction · 0.85
fprintfFunction · 0.85
printfFunction · 0.85

Calls 3

vprintfFunction · 0.85
sizeMethod · 0.45
dataMethod · 0.45

Tested by 1

TESTFunction · 0.68