ERR_peek_last_error_func

Peek at the newest error code and optionally its function name.

Synopsis

Declared in <openssl/err.h>

unsigned long
ERR_peek_last_error_func(char const** func);

Return Value

Newest error code, or 0 if the queue is empty (queue unchanged).

Parameters

NameDescription
funcReceives the function name string associated with the error, or may be NULL.