aboutsummaryrefslogtreecommitdiffstats
path: root/man3
diff options
context:
space:
mode:
Diffstat (limited to 'man3')
-rw-r--r--man3/printf.36
1 files changed, 5 insertions, 1 deletions
diff --git a/man3/printf.3 b/man3/printf.3
index 81da06a1ce..91f88bca67 100644
--- a/man3/printf.3
+++ b/man3/printf.3
@@ -227,7 +227,9 @@ uses `.' as radix character, and does not have a grouping character.
Thus,
.in +4n
.nf
+
printf("%'.2f", 1234567.89);
+
.fi
.in
results in `1234567.89' in the POSIX locale, in `1234567,89' in the
@@ -966,10 +968,12 @@ fprintf(stdout, format,
where
.I format
depends on locale, and may permute the arguments.
-With the value
+With the value:
.in +4n
.nf
+
"%1$s, %3$d. %2$s, %4$d:%5$.2d\en"
+
.fi
.in
one might obtain `Sonntag, 3. Juli, 10:02'.