diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-17 10:51:52 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-17 10:51:52 +0000 |
commit | 4ad94864781f48b1a4b77f9cfb934622bf756ba1 (patch) | |
tree | 3900955c1886e6d2570fea7125ee1f01bafe876d /upstream/debian-unstable/man3/printf.h.3head | |
parent | Adding upstream version 4.22.0. (diff) | |
download | manpages-l10n-4ad94864781f48b1a4b77f9cfb934622bf756ba1.tar.xz manpages-l10n-4ad94864781f48b1a4b77f9cfb934622bf756ba1.zip |
Adding upstream version 4.23.0.upstream/4.23.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'upstream/debian-unstable/man3/printf.h.3head')
-rw-r--r-- | upstream/debian-unstable/man3/printf.h.3head | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/upstream/debian-unstable/man3/printf.h.3head b/upstream/debian-unstable/man3/printf.h.3head index 1c6ad32c..9cef3763 100644 --- a/upstream/debian-unstable/man3/printf.h.3head +++ b/upstream/debian-unstable/man3/printf.h.3head @@ -2,7 +2,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH printf.h 3head 2022-09-18 "Linux man-pages 6.05.01" +.TH printf.h 3head 2024-05-02 "Linux man-pages 6.8" .SH NAME printf.h, \%register_printf_specifier, @@ -33,7 +33,7 @@ Standard C library .SH SYNOPSIS .nf .B #include <printf.h> -.PP +.P .BI "int register_printf_specifier(int " spec ", printf_function " func , .BI " printf_arginfo_size_function " arginfo ); .BI "int register_printf_modifier(const wchar_t *" str ); @@ -148,7 +148,7 @@ or a custom one, and optionally ORed with an appropriate length modifier .RB ( PA_FLAG_ *). .RS -.PP +.P The type is determined by using one of the following constants: .TP .B PA_INT @@ -188,7 +188,7 @@ For user-defined types, the size of the type (in bytes) should also be specified through this array. Otherwise, leave it unused. .RE -.PP +.P .I arginfo is called before .IR func , @@ -209,7 +209,7 @@ The callback of type .I printf_function should return the number of characters written, or \-1 on error. -.PP +.P The callback of type .I \%printf_arginfo_size_function should return the number of arguments to be parsed by this specifier. @@ -229,16 +229,16 @@ is an older function similar to .BR \%register_printf_specifier (), and is now deprecated. That function can't handle user-defined types. -.PP +.P .BR \%register_printf_specifier () -superseeds +supersedes .BR \%register_printf_function (3). .SH EXAMPLES The following example program registers the 'b' and 'B' specifiers to print integers in binary format, mirroring rules for other unsigned conversion specifiers like 'x' and 'u'. This can be used to print in binary prior to C23. -.PP +.P .\" SRC BEGIN (register_printf_specifier.c) .EX /* This code is in the public domain */ |