Bounded snprintf-style formatting into buf (NUL-terminated when n > 0).
Declared in <openssl/bio.h>
int
BIO_snprintf(
char* buf,
size_t n,
char const* format, ...);
Number of characters that would have been written (excluding NUL), or a negative value on error.
| Name | Description |
|---|---|
| buf | Destination buffer. |
| n | Capacity of buf in bytes. |
| format | printf-style format string. |