All of lore.kernel.org
 help / color / mirror / Atom feed
* [patch] Add overall structure of format string for printf(3)
@ 2021-03-08  8:12 Utkarsh Singh
  0 siblings, 0 replies; only message in thread
From: Utkarsh Singh @ 2021-03-08  8:12 UTC (permalink / raw)
  To: linux-man, alx.manpages, mtk.manpages

Hi,

Thanks for creating and maintaining Linux man-pages project.

Can we add a small syntax structure for format string in printf(3)
manual.  I personally find if easier to remember and scan.  This has
been taken from OpenBSD printf(3) manual.

diff --git a/man3/printf.3 b/man3/printf.3
index fa6564426..69ff29316 100644
--- a/man3/printf.3
+++ b/man3/printf.3
@@ -193,6 +193,13 @@ an optional
 and an optional
 .IR "length modifier" .
 .PP
+Overall syntax of format string is:
+.PP
+.in +4n
+.EX
+%[$][flags][width][.precision][length modifier]conversion
+.EE
+.PP
 The arguments must correspond properly (after type promotion) with the
 conversion specifier.
 By default, the arguments are used in the order
-- 
Utkarsh Singh

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-03-08  8:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-03-08  8:12 [patch] Add overall structure of format string for printf(3) Utkarsh Singh

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.