From: Alejandro Colomar Date: Sun, 31 Aug 2025 09:36:15 +0000 (+0200) Subject: man/man7/man-pages.7: Document formatting of foward declarations of function parameters X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a05d521a5658c7b8712e2c31c7d7a9bd2836cba7;p=thirdparty%2Fman-pages.git man/man7/man-pages.7: Document formatting of foward declarations of function parameters Reported-by: Helge Kreutzmann Signed-off-by: Alejandro Colomar --- diff --git a/man/man7/man-pages.7 b/man/man7/man-pages.7 index 784fd1a91..796bac47b 100644 --- a/man/man7/man-pages.7 +++ b/man/man7/man-pages.7 @@ -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