MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / vfprintf

Function vfprintf

extlibs/fmt/include/fmt/printf.h:629–638  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

627
628template <typename S, typename Char = char_t<S>>
629inline int vfprintf(
630 std::FILE* f, const S& format,
631 basic_format_args<basic_printf_context_t<type_identity_t<Char>>> args) {
632 basic_memory_buffer<Char> buffer;
633 printf(buffer, to_string_view(format), args);
634 std::size_t size = buffer.size();
635 return std::fwrite(buffer.data(), sizeof(Char), size, f) < size
636 ? -1
637 : static_cast<int>(size);
638}
639
640/**
641 \rst

Callers 2

fprintfFunction · 0.85
vprintfFunction · 0.85

Calls 5

printfFunction · 0.85
writeFunction · 0.85
to_string_viewFunction · 0.70
sizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected