Format a string into buf like vsnprintf, using OpenSSL's portable formatter.

Synopsis

Declared in <openssl/bio.h>

int
BIO_vsnprintf(
    char* buf,
    size_t n,
    char const* format,
    va_list args);

Return Value

Length that would have been written excluding the NUL, or ‐1 on encoding error.

Parameters

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.

Created with MrDocs