ERR_ASPRINTF_ERROR_DATA(3)
π ERR_asprintf_error_data π
Okay bestie, welcome to the Library Functions Manual page for ERR_asprintf_error_data β yes, thatβs the manual name folded in near the top, periodt. π
π 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 π¦
So ERR_asprintf_error_data builds a string using asprintf(3), and it calls asprintf(3) with the format and arguments you give it. 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. No cap, thatβs the fallback.
Itβs intended to be used instead of the OpenSSL functions ERR_add_error_data() and ERR_add_error_vdata(). Itβs giving replacement main character energy. π¦
π SEE ALSO π
β HISTORY β
ERR_asprintf_error_data appeared in OpenBSD 5.6 and is available in all versions of LibreSSL. Iconic behavior, honestly. π
Thatβs the whole vibe, bestie π«Ά β this page is from Debian, dated August 29, 2024, and the footer tag is ERR_ASPRINTF_ERROR_DATA(3). β¨π
π¦ where this page comes from
- opensuse-leap 16.0: libressl-devel-doc 4.1.0-bp160.1.1 Β· OpenSSL
- Copyright (c) 2017 Bob Beck <beck@openbsd.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms