Format a human‐readable description of error code e into a buffer.

Synopsis

Declared in <openssl/err.h>

char*
ERR_error_string(
    unsigned long e,
    char* buf);

Return Value

Pointer to buf, or to the static buffer when buf is NULL.

Parameters

Name

Description

e

Packed error code from ERR_get_error() or similar.

buf

Destination buffer of at least 256 bytes, or NULL to use a static buffer (not thread‐safe).

Created with MrDocs