[#ERR_set_error]
= ERR&lowbar;set&lowbar;error
:mrdocs:

Set library, reason, and optional formatted auxiliary data on the current error entry&period;

== Synopsis

Declared in `&lt;openssl&sol;err&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
ERR&lowbar;set&lowbar;error(
    int lib,
    int reason,
    char const* fmt, &period;&period;&period;);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *lib*
| ERR&lowbar;LIB&lowbar;&ast; library number for the error&period;
| *reason*
| Reason code within `lib` (or errno when `lib` is ERR&lowbar;LIB&lowbar;SYS)&period;
| *fmt*
| printf&hyphen;style format for extra data, or NULL for none&semi; remaining arguments match `fmt` when non&hyphen;NULL&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
