diff options
| author | Michael Kerrisk <mtk.manpages@gmail.com> | 2012-09-24 10:23:07 +0200 |
|---|---|---|
| committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2012-09-24 10:23:07 +0200 |
| commit | 9f8e673e623dc6fbae517885f4161a29e9c24d1d (patch) | |
| tree | 640be3c83321e9a56832c4532bf0b1ba780cfba3 /man3/printf.3 | |
| parent | 6c1544c1325437c9d1dc53c73c6c5fe72d3f62b3 (diff) | |
| download | man-pages-9f8e673e623dc6fbae517885f4161a29e9c24d1d.tar.gz | |
time.1, atexit.3, bsearch.3, dlopen.3, envz_add.3, errno.3, fmtmsg.3, getgrent_r.3, getline.3, getmntent.3, getnameinfo.3, getpass.3, getpwent_r.3, gets.3, isalpha.3, printf.3, puts.3, recno.3, scandir.3, stdarg.3, sysconf.3, termios.3, wordexp.3, null.4, core.5, dir_colors.5, issue.5, proc.5, termcap.5, utmp.5, ascii.7, cpuset.7, glob.7, man-pages.7, man.7, mdoc.7, mdoc.samples.7, regex.7: Global fix: use \\ rather than \e for literal backslash
Reported-by: Jan Engelhardt <jengelh@inai.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man3/printf.3')
| -rw-r--r-- | man3/printf.3 | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/man3/printf.3 b/man3/printf.3 index 1d832ca07c..450eeeaae0 100644 --- a/man3/printf.3 +++ b/man3/printf.3 @@ -105,7 +105,7 @@ and .BR vsnprintf () write at most .I size -bytes (including the terminating null byte (\(aq\e0\(aq)) to +bytes (including the terminating null byte (\(aq\\0\(aq)) to .IR str . .PP The functions @@ -159,7 +159,7 @@ and .BR vsnprintf () do not write more than .I size -bytes (including the terminating null byte (\(aq\e0\(aq)). +bytes (including the terminating null byte (\(aq\\0\(aq)). If the output was truncated due to this limit then the return value is the number of characters (excluding the terminating null byte) which would have been written to the final string if enough space @@ -979,7 +979,7 @@ to five decimal places: #include <math.h> #include <stdio.h> -fprintf(stdout, "pi = %.5f\en", 4 * atan(1.0)); +fprintf(stdout, "pi = %.5f\\n", 4 * atan(1.0)); .fi .in .PP @@ -993,7 +993,7 @@ are pointers to strings: .nf #include <stdio.h> -fprintf(stdout, "%s, %s %d, %.2d:%.2d\en", +fprintf(stdout, "%s, %s %d, %.2d:%.2d\\n", weekday, month, day, hour, min); .fi .in @@ -1017,7 +1017,7 @@ With the value: .in +4n .nf -"%1$s, %3$d. %2$s, %4$d:%5$.2d\en" +"%1$s, %3$d. %2$s, %4$d:%5$.2d\\n" .fi .in |
