Formats an error message for an error returned by an operating system or a language runtime, for example a file opening error, and writes it to out. The format is the same as the one used by std::system_error(ec, message) where ec is std::error_code(error_code, std::generic_category()). It is implementation-defined but normally looks like:
Declared in <fmt/format.h>
void
format_system_error(
/* implementation-defined */& out,
int error_code,
char const* message) noexcept;
<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.
| Name | Description |
|---|---|
| out | The buffer to append the formatted message to. |
| error_code | A system error code as given by errno. |
| message | The message describing the operation that failed. |