Blame doc/man3/BIO_printf.pod

Packit c4476c
=pod
Packit c4476c
Packit c4476c
=head1 NAME
Packit c4476c
Packit c4476c
BIO_printf, BIO_vprintf, BIO_snprintf, BIO_vsnprintf
Packit c4476c
- formatted output to a BIO
Packit c4476c
Packit c4476c
=head1 SYNOPSIS
Packit c4476c
Packit c4476c
 #include <openssl/bio.h>
Packit c4476c
Packit c4476c
 int BIO_printf(BIO *bio, const char *format, ...)
Packit c4476c
 int BIO_vprintf(BIO *bio, const char *format, va_list args)
Packit c4476c
Packit c4476c
 int BIO_snprintf(char *buf, size_t n, const char *format, ...)
Packit c4476c
 int BIO_vsnprintf(char *buf, size_t n, const char *format, va_list args)
Packit c4476c
Packit c4476c
=head1 DESCRIPTION
Packit c4476c
Packit c4476c
BIO_printf() is similar to the standard C printf() function, except that
Packit c4476c
the output is sent to the specified BIO, B<bio>, rather than standard
Packit c4476c
output.  All common format specifiers are supported.
Packit c4476c
Packit c4476c
BIO_vprintf() is similar to the vprintf() function found on many platforms,
Packit c4476c
the output is sent to the specified BIO, B<bio>, rather than standard
Packit c4476c
output.  All common format specifiers are supported. The argument
Packit c4476c
list B<args> is a stdarg argument list.
Packit c4476c
Packit c4476c
BIO_snprintf() is for platforms that do not have the common snprintf()
Packit c4476c
function. It is like sprintf() except that the size parameter, B<n>,
Packit c4476c
specifies the size of the output buffer.
Packit c4476c
Packit c4476c
BIO_vsnprintf() is to BIO_snprintf() as BIO_vprintf() is to BIO_printf().
Packit c4476c
Packit c4476c
=head1 RETURN VALUES
Packit c4476c
Packit c4476c
All functions return the number of bytes written, or -1 on error.
Packit c4476c
For BIO_snprintf() and BIO_vsnprintf() this includes when the output
Packit c4476c
buffer is too small.
Packit c4476c
Packit c4476c
=head1 COPYRIGHT
Packit c4476c
Packit c4476c
Copyright 2017 The OpenSSL Project Authors. All Rights Reserved.
Packit c4476c
Packit c4476c
Licensed under the OpenSSL license (the "License").  You may not use
Packit c4476c
this file except in compliance with the License.  You can obtain a copy
Packit c4476c
in the file LICENSE in the source distribution or at
Packit c4476c
L<https://www.openssl.org/source/license.html>.
Packit c4476c
Packit c4476c
=cut