summaryrefslogtreecommitdiff
path: root/usr/src/man/man3c/fwscanf.3c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/man/man3c/fwscanf.3c')
-rw-r--r--usr/src/man/man3c/fwscanf.3c67
1 files changed, 9 insertions, 58 deletions
diff --git a/usr/src/man/man3c/fwscanf.3c b/usr/src/man/man3c/fwscanf.3c
index cadbb988b0..8111ffe3f9 100644
--- a/usr/src/man/man3c/fwscanf.3c
+++ b/usr/src/man/man3c/fwscanf.3c
@@ -1,14 +1,14 @@
'\" te
.\" Copyright (c) 1992, X/Open Company Limited. All Rights Reserved.
.\" Portions Copyright (c) 2008, Sun Microsystems, Inc. All Rights Reserved.
-.\" Sun Microsystems, Inc. gratefully acknowledges The Open Group for permission to reproduce portions of its copyrighted documentation. Original documentation from The Open Group can be obtained online at
+.\" Sun Microsystems, Inc. gratefully acknowledges The Open Group for permission to reproduce portions of its copyrighted documentation. Original documentation from The Open Group can be obtained online at
.\" http://www.opengroup.org/bookstore/.
.\" The Institute of Electrical and Electronics Engineers and The Open Group, have given us permission to reprint portions of their documentation. In the following statement, the phrase "this text" refers to portions of the system documentation. Portions of this text are reprinted and reproduced in electronic form in the Sun OS Reference Manual, from IEEE Std 1003.1, 2004 Edition, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 6, Copyright (C) 2001-2004 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between these versions and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html.
.\" This notice shall appear on any product containing this material.
.\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
.\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
.\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
-.TH fwscanf 3C "10 Jul 2008" "SunOS 5.11" "Standard C Library Functions"
+.TH FWSCANF 3C "Jul 10, 2008"
.SH NAME
fwscanf, wscanf, swscanf, vfwscanf, vwscanf, vswscanf \- convert formatted
wide-character input
@@ -210,12 +210,10 @@ undefined.
The length modifiers and their meanings are:
.sp
.ne 2
-.mk
.na
\fB\fBhh\fR\fR
.ad
.RS 16n
-.rt
Specifies that a following \fBd\fR, \fBi\fR, \fBo\fR, \fBu\fR, \fBx\fR,
\fBX\fR, or \fBn\fR conversion specifier applies to an argument with type
pointer to \fBsigned char\fR or \fBunsigned char\fR.
@@ -223,12 +221,10 @@ pointer to \fBsigned char\fR or \fBunsigned char\fR.
.sp
.ne 2
-.mk
.na
\fB\fBh\fR\fR
.ad
.RS 16n
-.rt
Specifies that a following \fBd\fR, \fBi\fR, \fBo\fR, \fBu\fR, \fBx\fR,
\fBX\fR, or \fBn\fR conversion specifier applies to an argument with type
pointer to \fBshort\fR or \fBunsigned short\fR.
@@ -236,12 +232,10 @@ pointer to \fBshort\fR or \fBunsigned short\fR.
.sp
.ne 2
-.mk
.na
\fB\fBl\fR (ell)\fR
.ad
.RS 16n
-.rt
Specifies that a following \fBd\fR, \fBi\fR, \fBo\fR, \fBu\fR, \fBx\fR,
\fBX\fR, or \fBn\fR conversion specifier applies to an argument with type
pointer to \fBlong\fR or \fBunsigned long\fR; that a following \fBa\fR,
@@ -253,12 +247,10 @@ argument with type pointer to \fBwchar_t\fR.
.sp
.ne 2
-.mk
.na
\fB\fBll\fR (ell-ell)\fR
.ad
.RS 16n
-.rt
Specifies that a following \fBd\fR, \fBi\fR, \fBo\fR, \fBu\fR, \fBx\fR,
\fBX\fR, or \fBn\fR conversion specifier applies to an argument with type
pointer to \fBlong long\fR or \fBunsigned long long\fR.
@@ -266,12 +258,10 @@ pointer to \fBlong long\fR or \fBunsigned long long\fR.
.sp
.ne 2
-.mk
.na
\fB\fBj\fR\fR
.ad
.RS 16n
-.rt
Specifies that a following \fBd\fR, \fBi\fR, \fBo\fR, \fBu\fR, \fBx\fR,
\fBX\fR, or \fBn\fR conversion specifier applies to an argument with type
pointer to \fBintmax_t\fR or \fBuintmax_t\fR.
@@ -279,12 +269,10 @@ pointer to \fBintmax_t\fR or \fBuintmax_t\fR.
.sp
.ne 2
-.mk
.na
\fB\fBz\fR\fR
.ad
.RS 16n
-.rt
Specifies that a following \fBd\fR, \fBi\fR, \fBo\fR, \fBu\fR, \fBx\fR,
\fBX\fR, or \fBn\fR conversion specifier applies to an argument with type
pointer to \fBsize_t\fR or the corresponding signed integer type.
@@ -292,12 +280,10 @@ pointer to \fBsize_t\fR or the corresponding signed integer type.
.sp
.ne 2
-.mk
.na
\fB\fBt\fR\fR
.ad
.RS 16n
-.rt
Specifies that a following \fBd\fR, \fBi\fR, \fBo\fR, \fBu\fR, \fBx\fR,
\fBX\fR, or \fBn\fR conversion specifier applies to an argument with type
pointer to \fBptrdiff_t\fR or the corresponding \fBunsigned\fR type.
@@ -305,12 +291,10 @@ pointer to \fBptrdiff_t\fR or the corresponding \fBunsigned\fR type.
.sp
.ne 2
-.mk
.na
\fB\fBL\fR\fR
.ad
.RS 16n
-.rt
Specifies that a following \fBa\fR, \fBA\fR, \fBe\fR, \fBE\fR, \fBf\fR,
\fBF\fR, \fBg\fR, or \fBG\fR conversion specifier applies to an argument with
type pointer to \fBlong double\fR.
@@ -325,12 +309,10 @@ specified above, the behavior is undefined.
The following conversion wide-characters are valid:
.sp
.ne 2
-.mk
.na
\fB\fBd\fR\fR
.ad
.RS 11n
-.rt
Matches an optionally signed decimal integer, whose format is the same as
expected for the subject sequence of \fBwcstol\fR(3C) with the value 10 for the
\fIbase\fR argument. In the absence of a size modifier, the corresponding
@@ -339,12 +321,10 @@ argument must be a pointer to \fBint\fR.
.sp
.ne 2
-.mk
.na
\fB\fBi\fR\fR
.ad
.RS 11n
-.rt
Matches an optionally signed integer, whose format is the same as expected for
the subject sequence of \fBwcstol\fR(3C) with 0 for the \fIbase\fR argument. In
the absence of a size modifier, the corresponding argument must be a pointer to
@@ -353,12 +333,10 @@ the absence of a size modifier, the corresponding argument must be a pointer to
.sp
.ne 2
-.mk
.na
\fB\fBo\fR\fR
.ad
.RS 11n
-.rt
Matches an optionally signed octal integer, whose format is the same as
expected for the subject sequence of \fBwcstoul\fR(3C) with the value 8 for the
\fIbase\fR argument. In the absence of a size modifier, the corresponding
@@ -367,12 +345,10 @@ argument must be a pointer to \fBunsigned int\fR.
.sp
.ne 2
-.mk
.na
\fB\fBu\fR\fR
.ad
.RS 11n
-.rt
Matches an optionally signed decimal integer, whose format is the same as
expected for the subject sequence of \fBwcstoul\fR(3C) with the value 10 for
the \fIbase\fR argument. In the absence of a size modifier, the corresponding
@@ -381,12 +357,10 @@ argument must be a pointer to \fBunsigned int\fR.
.sp
.ne 2
-.mk
.na
\fB\fBx\fR\fR
.ad
.RS 11n
-.rt
Matches an optionally signed hexadecimal integer, whose format is the same as
expected for the subject sequence of \fBwcstoul\fR(3C) with the value 16 for
the \fIbase\fR argument. In the absence of a size modifier, the corresponding
@@ -395,12 +369,10 @@ argument must be a pointer to \fBunsigned int\fR.
.sp
.ne 2
-.mk
.na
\fB\fBa\fR,\fBe\fR,\fBf\fR,\fBg\fR\fR
.ad
.RS 11n
-.rt
Matches an optionally signed floating-point number, whose format is the same as
expected for the subject sequence of \fBwcstod\fR(3C). In the absence of a size
modifier, the corresponding argument must be a pointer to \fBfloat\fR. The
@@ -418,12 +390,10 @@ setting of \fBerrno\fR to \fBERANGE\fR, if applicable.
.sp
.ne 2
-.mk
.na
\fB\fBs\fR\fR
.ad
.RS 11n
-.rt
Matches a sequence of non white-space wide-characters. If no \fBl\fR (ell)
qualifier is present, characters from the input field are converted as if by
repeated calls to the \fBwcrtomb\fR(3C) function, with the conversion state
@@ -439,12 +409,10 @@ wide-character, which will be added automatically.
.sp
.ne 2
-.mk
.na
\fB\fB[\fR\fR
.ad
.RS 11n
-.rt
Matches a non-empty sequence of wide-characters from a set of expected
wide-characters (the \fIscanset\fR). If no \fBl\fR (ell) qualifier is present,
wide-characters from the input field are converted as if by repeated calls to
@@ -476,12 +444,10 @@ range of characters to be matched.
.sp
.ne 2
-.mk
.na
\fB\fBc\fR\fR
.ad
.RS 11n
-.rt
Matches a sequence of wide-characters of the number specified by the field
width (1 if no field width is present in the conversion specification). If no
\fBl\fR (ell) qualifier is present, wide-characters from the input field are
@@ -498,12 +464,10 @@ added.
.sp
.ne 2
-.mk
.na
\fB\fBp\fR\fR
.ad
.RS 11n
-.rt
Matches the set of sequences that is the same as the set of sequences that is
produced by the \fB%p\fR conversion of the corresponding \fBfwprintf\fR(3C)
functions. The corresponding argument must be a pointer to a pointer to
@@ -514,12 +478,10 @@ otherwise the behavior of the \fB%p\fR conversion is undefined.
.sp
.ne 2
-.mk
.na
\fB\fBn\fR\fR
.ad
.RS 11n
-.rt
No input is consumed. The corresponding argument must be a pointer to the
integer into which is to be written the number of wide-characters read from the
input so far by this call to the \fBfwscanf()\fR functions. Execution of a
@@ -529,34 +491,28 @@ returned at the completion of execution of the function.
.sp
.ne 2
-.mk
.na
\fB\fBC\fR\fR
.ad
.RS 11n
-.rt
Same as \fBlc\fR.
.RE
.sp
.ne 2
-.mk
.na
\fB\fBS\fR\fR
.ad
.RS 11n
-.rt
Same as \fBls\fR.
.RE
.sp
.ne 2
-.mk
.na
\fB\fB%\fR\fR
.ad
.RS 11n
-.rt
Matches a single \fB%\fR; no conversion or assignment occurs. The complete
conversion specification must be \fB%%\fR.
.RE
@@ -619,23 +575,19 @@ fail, refer to \fBfgetwc\fR(3C).
In addition, \fBfwscanf()\fR may fail if:
.sp
.ne 2
-.mk
.na
\fB\fBEILSEQ\fR\fR
.ad
.RS 10n
-.rt
Input byte sequence does not form a valid character.
.RE
.sp
.ne 2
-.mk
.na
\fB\fBEINVAL\fR\fR
.ad
.RS 10n
-.rt
There are insufficient arguments.
.RE
@@ -712,17 +664,16 @@ See \fBattributes\fR(5) for descriptions of the following attributes:
.sp
.TS
-tab() box;
-cw(2.75i) |cw(2.75i)
-lw(2.75i) |lw(2.75i)
-.
-ATTRIBUTE TYPEATTRIBUTE VALUE
+box;
+c | c
+l | l .
+ATTRIBUTE TYPE ATTRIBUTE VALUE
_
-Interface StabilityCommitted
+Interface Stability Committed
_
-MT-LevelMT-Safe
+MT-Level MT-Safe
_
-StandardSee \fBstandards\fR(5).
+Standard See \fBstandards\fR(5).
.TE
.SH SEE ALSO