• 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>vfscanf - 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="vfprintf.html#vfprintf" title="vfprintf">
10<link rel="next" href="vfwprintf.html#vfwprintf" title="vfwprintf">
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="vfscanf"></a>
29<p>
30Next:&nbsp;<a rel="next" accesskey="n" href="vfwprintf.html#vfwprintf">vfwprintf</a>,
31Previous:&nbsp;<a rel="previous" accesskey="p" href="vfprintf.html#vfprintf">vfprintf</a>,
32Up:&nbsp;<a rel="up" accesskey="u" href="Stdio.html#Stdio">Stdio</a>
33<hr>
34</div>
35
36<h3 class="section">4.69 <code>vfscanf</code>, <code>vscanf</code>, <code>vsscanf</code>&mdash;format argument list</h3>
37
38<p><a name="index-vfscanf-337"></a><a name="index-g_t_005fvfscanf_005fr-338"></a><a name="index-vscanf-339"></a><a name="index-g_t_005fvscanf_005fr-340"></a><a name="index-vsscanf-341"></a><a name="index-g_t_005fvsscanf_005fr-342"></a><strong>Synopsis</strong>
39<pre class="example">     #include &lt;stdio.h&gt;
40     #include &lt;stdarg.h&gt;
41     int vscanf(const char *<var>fmt</var>, va_list <var>list</var>);
42     int vfscanf(FILE *<var>fp</var>, const char *<var>fmt</var>, va_list <var>list</var>);
43     int vsscanf(const char *<var>str</var>, const char *<var>fmt</var>, va_list <var>list</var>);
44     
45     int _vscanf_r(struct _reent *<var>reent</var>, const char *<var>fmt</var>,
46         va_list <var>list</var>);
47     int _vfscanf_r(struct _reent *<var>reent</var>, FILE *<var>fp</var>, const char *<var>fmt</var>,
48         va_list <var>list</var>);
49     int _vsscanf_r(struct _reent *<var>reent</var>, const char *<var>str</var>,
50         const char *<var>fmt</var>, va_list <var>list</var>);
51     
52</pre>
53   <p><strong>Description</strong><br>
54<code>vscanf</code>, <code>vfscanf</code>, and <code>vsscanf</code> are (respectively) variants
55of <code>scanf</code>, <code>fscanf</code>, and <code>sscanf</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>vscanf</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>vscanf</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>_vscanf_r</code>, <code>_vfscanf_f</code>, and <code>_vsscanf_r</code> are
73reentrant versions which take an additional first parameter which points to the
74reentrancy structure.
75
76   <p><br>
77<strong>Portability</strong><br>
78These are GNU extensions.
79
80   <p>Supporting OS subroutines required:
81
82   <p><br>
83
84   </body></html>
85
86