]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
man/man7/man-pages.7: Document formatting of foward declarations of function parameters
authorAlejandro Colomar <alx@kernel.org>
Sun, 31 Aug 2025 09:36:15 +0000 (11:36 +0200)
committerAlejandro Colomar <alx@kernel.org>
Sat, 6 Sep 2025 20:21:09 +0000 (22:21 +0200)
Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
man/man7/man-pages.7

index 784fd1a91e2e4ffd44737e002c79078f95992e1c..796bac47b769233db50179dd760580b63970adfd 100644 (file)
@@ -484,6 +484,19 @@ Wrap the function prototype(s) in a
 .IR .nf / .fi
 pair to prevent filling.
 .P
+Forward declarations of parameters in functions
+should not use bold nor italics;
+this helps distinguish them visually from actual parameters.
+As an example:
+.P
+.in +4n
+.nf
+.BR "int snprintf(" "size_t size;"
+.BI "             char " str "[restrict " size "], size_t " size ,
+.BI "             const char *restrict " format ", ...);"
+.fi
+.in
+.P
 In general, where more than one function prototype is shown in the SYNOPSIS,
 the prototypes should
 .I not