.\" $OpenBSD: BIO_printf.3,v 1.4 2024/03/02 09:18:28 tb Exp $ .\" OpenSSL 2ca2e917 Mon Mar 20 16:25:22 2017 -0400 .\" .\" Copyright (c) 2017 Ingo Schwarze .\" .\" Permission to use, copy, modify, and distribute this software for any .\" purpose with or without fee is hereby granted, provided that the above .\" copyright notice and this permission notice appear in all copies. .\" .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" .Dd $Mdocdate: March 2 2024 $ .Dt BIO_PRINTF 3 .Os .Sh NAME .Nm BIO_printf .Nd formatted output to a BIO .Sh SYNOPSIS .In openssl/bio.h .Ft int .Fo BIO_printf .Fa "BIO *bio" .Fa "const char *format" .Fa ... .Fc .Sh DESCRIPTION .Fn BIO_printf is a wrapper around .Xr vfprintf 3 , sending the output to the specified .Fa bio . .Sh RETURN VALUES These functions return the number of bytes written, or -1 if an error occurs. .Sh SEE ALSO .Xr BIO_new 3 .Sh HISTORY .Fn BIO_printf first appeared in SSLeay 0.6.5 and has been available since .Ox 2.4 .