[#ERR_peek_error_data]
= ERR&lowbar;peek&lowbar;error&lowbar;data
:mrdocs:

Peek at the earliest error and optionally return auxiliary data and flags&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
unsigned long
ERR&lowbar;peek&lowbar;error&lowbar;data(
    char const** data,
    int* flags);
----

== Return Value

Earliest error code, or 0 if the queue is empty (queue unchanged)&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *data*
| Receives optional auxiliary data, or unchanged if NULL&period;
| *flags*
| Receives ERR&lowbar;TXT&lowbar;&ast; flags for `data,` or unchanged if NULL&period;
|===


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