fprintf overloads

Synopses

Declared in <fmt/printf.h>

Formats args according to specifications in fmt and writes the output to f.

template<typename... T>
int
fprintf(
    FILE* f,
    string_view fmt,
    T const&... args);

A deprecated wchar_t overload of fprintf.

template<typename... T>
[[deprecated]]
int
fprintf(
    FILE* f,
    basic_string_view<wchar_t> fmt,
    T const&... args);

Return Value

The number of characters written, or ‐1 on failure.

Parameters

Name

Description

f

The file to write the output to.

fmt

The format string.

args

The arguments to format.

Created with MrDocs