Format a string into buf like vsnprintf, using OpenSSL's portable formatter.
Declared in <openssl/bio.h>
int
BIO_vsnprintf(
char* buf,
size_t n,
char const* format,
va_list args);
Length that would have been written excluding the NUL, or -1 on encoding error.
| Name | Description |
|---|---|
| buf | Destination buffer. |
| n | Capacity of buf in bytes (including the trailing NUL). |
| format | printf-style format string. |
| args | Variable-argument list for format. |