ERR_get_error

Pop the earliest error code from the current thread's error queue.

Synopsis

Declared in <openssl/err.h>

unsigned long
ERR_get_error();

Return Value

Packed error code, or 0 if the queue is empty.