• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/toolchains/hndtools-armeabi-2013.11/share/doc/arm-arm-none-eabi/html/libc/
1<html lang="en">
2<head>
3<title>vfwscanf - Untitled</title>
4<meta http-equiv="Content-Type" content="text/html">
5<meta name="description" content="Untitled">
6<meta name="generator" content="makeinfo 4.13">
7<link title="Top" rel="start" href="index.html#Top">
8<link rel="up" href="Stdio.html#Stdio" title="Stdio">
9<link rel="prev" href="vfwprintf.html#vfwprintf" title="vfwprintf">
10<link rel="next" href="viprintf.html#viprintf" title="viprintf">
11<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
12<meta http-equiv="Content-Style-Type" content="text/css">
13<style type="text/css"><!--
14  pre.display { font-family:inherit }
15  pre.format  { font-family:inherit }
16  pre.smalldisplay { font-family:inherit; font-size:smaller }
17  pre.smallformat  { font-family:inherit; font-size:smaller }
18  pre.smallexample { font-size:smaller }
19  pre.smalllisp    { font-size:smaller }
20  span.sc    { font-variant:small-caps }
21  span.roman { font-family:serif; font-weight:normal; } 
22  span.sansserif { font-family:sans-serif; font-weight:normal; } 
23--></style>
24<link rel="stylesheet" type="text/css" href="../cs.css">
25</head>
26<body>
27<div class="node">
28<a name="vfwscanf"></a>
29<p>
30Next:&nbsp;<a rel="next" accesskey="n" href="viprintf.html#viprintf">viprintf</a>,
31Previous:&nbsp;<a rel="previous" accesskey="p" href="vfwprintf.html#vfwprintf">vfwprintf</a>,
32Up:&nbsp;<a rel="up" accesskey="u" href="Stdio.html#Stdio">Stdio</a>
33<hr>
34</div>
35
36<h3 class="section">4.71 <code>vfwscanf</code>, <code>vwscanf</code>, <code>vswscanf</code>&mdash;scan and format argument list from wide character input</h3>
37
38<p><a name="index-vfwscanf-349"></a><a name="index-g_t_005fvfwscanf-350"></a><a name="index-vwscanf-351"></a><a name="index-g_t_005fvwscanf-352"></a><a name="index-vswscanf-353"></a><a name="index-g_t_005fvswscanf-354"></a><strong>Synopsis</strong>
39<pre class="example">     #include &lt;stdio.h&gt;
40     #include &lt;stdarg.h&gt;
41     int vwscanf(const wchar_t *<var>fmt</var>, va_list <var>list</var>);
42     int vfwscanf(FILE *<var>fp</var>, const wchar_t *<var>fmt</var>, va_list <var>list</var>);
43     int vswscanf(const wchar_t *<var>str</var>, const wchar_t *<var>fmt</var>, va_list <var>list</var>);
44     
45     int _vwscanf(struct _reent *<var>reent</var>, const wchar_t *<var>fmt</var>,
46         va_list <var>list</var>);
47     int _vfwscanf(struct _reent *<var>reent</var>, FILE *<var>fp</var>, const wchar_t *<var>fmt</var>,
48         va_list <var>list</var>);
49     int _vswscanf(struct _reent *<var>reent</var>, const wchar_t *<var>str</var>,
50         const wchar_t *<var>fmt</var>, va_list <var>list</var>);
51     
52</pre>
53   <p><strong>Description</strong><br>
54<code>vwscanf</code>, <code>vfwscanf</code>, and <code>vswscanf</code> are (respectively) variants
55of <code>wscanf</code>, <code>fwscanf</code>, and <code>swscanf</code>.  They differ only in
56allowing their caller to pass the variable argument list as a
57<code>va_list</code> object (initialized by <code>va_start</code>) rather than
58directly accepting a variable number of arguments.
59
60   <p><br>
61<strong>Returns</strong><br>
62The return values are consistent with the corresponding functions:
63<code>vwscanf</code> returns the number of input fields successfully scanned,
64converted, and stored; the return value does not include scanned
65fields which were not stored.
66
67   <p>If <code>vwscanf</code> attempts to read at end-of-file, the return value
68is <code>EOF</code>.
69
70   <p>If no fields were stored, the return value is <code>0</code>.
71
72   <p>The routines <code>_vwscanf</code>, <code>_vfwscanf</code>, and <code>_vswscanf</code> are
73reentrant versions which take an additional first parameter which points
74to the reentrancy structure.
75
76   <p><br>
77<strong>Portability</strong><br>
78C99, POSIX-1.2008
79
80   <p><br>
81
82   </body></html>
83
84