[#ERR_peek_last_error_all]
= ERR&lowbar;peek&lowbar;last&lowbar;error&lowbar;all
:mrdocs:

Peek at the newest error and optionally return file, line, function, 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;last&lowbar;error&lowbar;all(
    char const** file,
    int* line,
    char const** func,
    char const** data,
    int* flags);
----

== Return Value

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

== Parameters

[cols="1,4"]
|===
| Name| Description
| *file*
| Receives the source file name, or unchanged if NULL&period;
| *line*
| Receives the source line number, or unchanged if NULL&period;
| *func*
| Receives the function name, or unchanged if NULL&period;
| *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]#
