#include "fmt/printf.h" namespace fmt { template void printf(basic_writer &w, basic_string_view format, args args); FMT_FUNC int vfprintf(std::FILE *f, string_view format, printf_args args) { memory_buffer buffer; printf(buffer, format, args); std::size_t size = buffer.size(); return std::fwrite( buffer.data(), 1, size, f) < size ? -1 : static_cast(size); } #ifndef FMT_HEADER_ONLY template void printf_context::format(buffer &); template void printf_context::format(wbuffer &); #endif }