Function fmt::v6::format_system_error¶

Function Documentation¶

void fmt::v6::format_system_error(internal::buffer<char> &out, int error_code, string_view message)

Formats an error returned by an operating system or a language runtime, for example a file opening error, and writes it to out* in the following form:

<message>*: <system-message>

where <message>* is the passed message and <system-message> is the system message corresponding to the error code.

error_code* is a system error code as given by errno.

If error_code* is not a valid error code such as -1, the system message may look like “Unknown error -1” and is platform-dependent.