"Fossies" - the Fresh Open Source Software Archive

Member "libressl-2.9.2/man/ERR_asprintf_error_data.3" (14 Nov 2017, 1666 Bytes) of package /linux/misc/libressl-2.9.2.tar.gz:


Caution: As a special service "Fossies" has tried to format the requested manual source page into HTML format but links to other man pages may be missing or even errorneous. Alternatively you can here view or download the uninterpreted manual source code. A member file download can also be achieved by clicking within a package contents listing on the according byte size field.

ERR_ASPRINTF_ERROR_DA... BSD Library Functions Manual ERR_ASPRINTF_ERROR_DA...

NAME

ERR_asprintf_error_data — record a LibreSSL error using a formatted string

SYNOPSIS

#include <openssl/err.h>

void

ERR_asprintf_error_data(char * format, ...);

DESCRIPTION

ERR_asprintf_error_data builds a string using asprintf(3) called with the provided format and arguments. The resulting string is then associated with the error code that was most recently added. If asprintf(3) fails, the string "malloc failed" is associated instead.

ERR_asprintf_error_data is intended to be used instead of the OpenSSL functions ERR_add_error_data(3) and ERR_add_error_vdata(3).

SEE ALSO

ERR(3), ERR_put_error(3), printf(3)

HISTORY

ERR_asprintf_error_data appeared in OpenBSD 5.6 and is available in all versions of LibreSSL.

BSD February 21, 2017 BSD