summaryrefslogtreecommitdiff
path: root/usr/src/man/man3c/printf.3c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/man/man3c/printf.3c')
-rw-r--r--usr/src/man/man3c/printf.3c38
1 files changed, 27 insertions, 11 deletions
diff --git a/usr/src/man/man3c/printf.3c b/usr/src/man/man3c/printf.3c
index add9c37bb9..21318b758e 100644
--- a/usr/src/man/man3c/printf.3c
+++ b/usr/src/man/man3c/printf.3c
@@ -175,7 +175,7 @@ described below, is given to the field width. The field width takes the form of
an asterisk (*), described below, or a decimal integer.
.sp
If the conversion specifier is \fBs\fR, a standard-conforming application (see
-\fBstandards\fR(5)) interprets the field width as the minimum number of bytes
+\fBstandards\fR(7)) interprets the field width as the minimum number of bytes
to be printed; an application that is not standard-conforming interprets the
field width as the minimum number of columns of screen display. For an
application that is not standard-conforming, \fB%10s\fR means if the converted
@@ -200,7 +200,7 @@ decimal digit string, where a null digit string is treated as 0. If a precision
appears with any other conversion specifier, the behavior is undefined.
.sp
If the conversion specifier is \fBs\fR or \fBS\fR, a standard-conforming
-application (see \fBstandards\fR(5)) interprets the precision as the maximum
+application (see \fBstandards\fR(7)) interprets the precision as the maximum
number of bytes to be written; an application that is not standard-conforming
interprets the precision as the maximum number of columns of screen display.
For an application that is not standard-conforming, \fB%.5s\fR would print only
@@ -690,7 +690,7 @@ the resulting wide character is printed.
.RS 8n
The argument must be a pointer to an array of \fBchar\fR. Bytes from the array
are written up to (but not including) any terminating null byte. If a precision
-is specified, a standard-conforming application (see \fBstandards\fR(5)) will
+is specified, a standard-conforming application (see \fBstandards\fR(7)) will
write only the number of bytes specified by precision; an application that is
not standard-conforming will write only the portion of the string that will
display in the number of columns of screen display specified by precision. If
@@ -966,7 +966,7 @@ the numeric constant zero (0). Note that the octal number does not include the
zero prefix as it would for a normal octal constant. To specify a hexadecimal
number, omit the zero so that the prefix is an 'x' (uppercase 'X' is not
allowed in this context). Support for hexadecimal sequences is an ANSI
-extension. See \fBstandards\fR(5).
+extension. See \fBstandards\fR(7).
.SH EXAMPLES
\fBExample 1 \fRTo print the language-independent date and time format, the
following statement could be used:
@@ -1053,7 +1053,7 @@ characters wide:
.in -2
.SH ATTRIBUTES
-See \fBattributes\fR(5) for descriptions of the following attributes:
+See \fBattributes\fR(7) for descriptions of the following attributes:
.sp
.sp
@@ -1079,16 +1079,32 @@ long as \fBsetlocale\fR(3C) is not being called to change the locale. The
\fBsprintf()\fR and \fBsnprintf()\fR functions are Async-Signal-Safe.
.sp
.LP
-See \fBstandards\fR(5) for the standards conformance of \fBprintf()\fR,
+See \fBstandards\fR(7) for the standards conformance of \fBprintf()\fR,
\fBfprintf()\fR, \fBsprintf()\fR, and \fBsnprintf()\fR. The \fBasprintf()\fR
function is modeled on the one that appears in the FreeBSD, NetBSD, and GNU C
libraries.
.SH SEE ALSO
-\fBexit\fR(2), \fBlseek\fR(2), \fBwrite\fR(2), \fBabort\fR(3C), \fBecvt\fR(3C),
-\fBexit\fR(3C), \fBfclose\fR(3C), \fBfflush\fR(3C), \fBfputwc\fR(3C),
-\fBfree\fR(3C), \fBmalloc\fR(3C), \fBputc\fR(3C), \fBscanf\fR(3C),
-\fBsetlocale\fR(3C), \fBstdio\fR(3C), \fBvprintf\fR(3C), \fBwcstombs\fR(3C),
-\fBwctomb\fR(3C), \fBattributes\fR(5), \fBenviron\fR(5), \fBstandards\fR(5)
+.BR exit (2),
+.BR lseek (2),
+.BR write (2),
+.BR abort (3C),
+.BR ecvt (3C),
+.BR exit (3C),
+.BR fclose (3C),
+.BR fflush (3C),
+.BR fputwc (3C),
+.BR free (3C),
+.BR malloc (3C),
+.BR putc (3C),
+.BR scanf (3C),
+.BR setlocale (3C),
+.BR stdio (3C),
+.BR vprintf (3C),
+.BR wcstombs (3C),
+.BR wctomb (3C),
+.BR attributes (7),
+.BR environ (7),
+.BR standards (7)
.SH NOTES
If the \fBj\fR length modifier is used, 32-bit applications that were compiled
using \fBc89\fR on releases prior to Solaris 10 will experience undefined