xref: /openbsd/lib/libcrypto/man/BIO_printf.3 (revision 72c7c57a)
1.\"	$OpenBSD: BIO_printf.3,v 1.4 2024/03/02 09:18:28 tb Exp $
2.\"	OpenSSL 2ca2e917 Mon Mar 20 16:25:22 2017 -0400
3.\"
4.\" Copyright (c) 2017 Ingo Schwarze <schwarze@openbsd.org>
5.\"
6.\" Permission to use, copy, modify, and distribute this software for any
7.\" purpose with or without fee is hereby granted, provided that the above
8.\" copyright notice and this permission notice appear in all copies.
9.\"
10.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17.\"
18.Dd $Mdocdate: March 2 2024 $
19.Dt BIO_PRINTF 3
20.Os
21.Sh NAME
22.Nm BIO_printf
23.Nd formatted output to a BIO
24.Sh SYNOPSIS
25.In openssl/bio.h
26.Ft int
27.Fo BIO_printf
28.Fa "BIO *bio"
29.Fa "const char *format"
30.Fa ...
31.Fc
32.Sh DESCRIPTION
33.Fn BIO_printf
34is a wrapper around
35.Xr vfprintf 3 ,
36sending the output to the specified
37.Fa bio .
38.Sh RETURN VALUES
39These functions return the number of bytes written,
40or -1 if an error occurs.
41.Sh SEE ALSO
42.Xr BIO_new 3
43.Sh HISTORY
44.Fn BIO_printf
45first appeared in SSLeay 0.6.5 and has been available since
46.Ox 2.4 .
47