| 607 | |
| 608 | template <typename Char> |
| 609 | auto 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 |