No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

hace 3 años
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <html>
  3. <!-- Created by GNU Texinfo 6.5, http://www.gnu.org/software/texinfo/ -->
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  6. <title>vfwscanf (The Red Hat newlib C Library)</title>
  7. <meta name="description" content="vfwscanf (The Red Hat newlib C Library)">
  8. <meta name="keywords" content="vfwscanf (The Red Hat newlib C Library)">
  9. <meta name="resource-type" content="document">
  10. <meta name="distribution" content="global">
  11. <meta name="Generator" content="makeinfo">
  12. <link href="index.html#Top" rel="start" title="Top">
  13. <link href="Document-Index.html#Document-Index" rel="index" title="Document Index">
  14. <link href="Document-Index.html#SEC_Contents" rel="contents" title="Table of Contents">
  15. <link href="Stdio.html#Stdio" rel="up" title="Stdio">
  16. <link href="viprintf.html#viprintf" rel="next" title="viprintf">
  17. <link href="vfwprintf.html#vfwprintf" rel="prev" title="vfwprintf">
  18. <style type="text/css">
  19. <!--
  20. a.summary-letter {text-decoration: none}
  21. blockquote.indentedblock {margin-right: 0em}
  22. blockquote.smallindentedblock {margin-right: 0em; font-size: smaller}
  23. blockquote.smallquotation {font-size: smaller}
  24. div.display {margin-left: 3.2em}
  25. div.example {margin-left: 3.2em}
  26. div.lisp {margin-left: 3.2em}
  27. div.smalldisplay {margin-left: 3.2em}
  28. div.smallexample {margin-left: 3.2em}
  29. div.smalllisp {margin-left: 3.2em}
  30. kbd {font-style: oblique}
  31. pre.display {font-family: inherit}
  32. pre.format {font-family: inherit}
  33. pre.menu-comment {font-family: serif}
  34. pre.menu-preformatted {font-family: serif}
  35. pre.smalldisplay {font-family: inherit; font-size: smaller}
  36. pre.smallexample {font-size: smaller}
  37. pre.smallformat {font-family: inherit; font-size: smaller}
  38. pre.smalllisp {font-size: smaller}
  39. span.nolinebreak {white-space: nowrap}
  40. span.roman {font-family: initial; font-weight: normal}
  41. span.sansserif {font-family: sans-serif; font-weight: normal}
  42. ul.no-bullet {list-style: none}
  43. -->
  44. </style>
  45. </head>
  46. <body lang="en">
  47. <a name="vfwscanf"></a>
  48. <div class="header">
  49. <p>
  50. Next: <a href="viprintf.html#viprintf" accesskey="n" rel="next">viprintf</a>, Previous: <a href="vfwprintf.html#vfwprintf" accesskey="p" rel="prev">vfwprintf</a>, Up: <a href="Stdio.html#Stdio" accesskey="u" rel="up">Stdio</a> &nbsp; [<a href="Document-Index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Document-Index.html#Document-Index" title="Index" rel="index">Index</a>]</p>
  51. </div>
  52. <hr>
  53. <a name="vfwscanf_002c-vwscanf_002c-vswscanf_002d_002d_002dscan-and-format-argument-list-from-wide-character-input"></a>
  54. <h3 class="section">4.73 <code>vfwscanf</code>, <code>vwscanf</code>, <code>vswscanf</code>&mdash;scan and format argument list from wide character input</h3>
  55. <a name="index-vfwscanf"></a>
  56. <a name="index-_005fvfwscanf"></a>
  57. <a name="index-vwscanf"></a>
  58. <a name="index-_005fvwscanf"></a>
  59. <a name="index-vswscanf"></a>
  60. <a name="index-_005fvswscanf"></a>
  61. <p><strong>Synopsis</strong>
  62. </p><div class="example">
  63. <pre class="example">#include &lt;stdio.h&gt;
  64. #include &lt;stdarg.h&gt;
  65. int vwscanf(const wchar_t *__restrict <var>fmt</var>, va_list <var>list</var>);
  66. int vfwscanf(FILE *__restrict <var>fp</var>,
  67. const wchar_t *__restrict <var>fmt</var>, va_list <var>list</var>);
  68. int vswscanf(const wchar_t *__restrict <var>str</var>,
  69. const wchar_t *__restrict <var>fmt</var>, va_list <var>list</var>);
  70. int _vwscanf(struct _reent *<var>reent</var>, const wchar_t *<var>fmt</var>,
  71. va_list <var>list</var>);
  72. int _vfwscanf(struct _reent *<var>reent</var>, FILE *<var>fp</var>,
  73. const wchar_t *<var>fmt</var>, va_list <var>list</var>);
  74. int _vswscanf(struct _reent *<var>reent</var>, const wchar_t *<var>str</var>,
  75. const wchar_t *<var>fmt</var>, va_list <var>list</var>);
  76. </pre></div>
  77. <p><strong>Description</strong><br>
  78. <code>vwscanf</code>, <code>vfwscanf</code>, and <code>vswscanf</code> are (respectively) variants
  79. of <code>wscanf</code>, <code>fwscanf</code>, and <code>swscanf</code>. They differ only in
  80. allowing their caller to pass the variable argument list as a
  81. <code>va_list</code> object (initialized by <code>va_start</code>) rather than
  82. directly accepting a variable number of arguments.
  83. </p>
  84. <br>
  85. <p><strong>Returns</strong><br>
  86. The return values are consistent with the corresponding functions:
  87. <code>vwscanf</code> returns the number of input fields successfully scanned,
  88. converted, and stored; the return value does not include scanned
  89. fields which were not stored.
  90. </p>
  91. <p>If <code>vwscanf</code> attempts to read at end-of-file, the return value
  92. is <code>EOF</code>.
  93. </p>
  94. <p>If no fields were stored, the return value is <code>0</code>.
  95. </p>
  96. <p>The routines <code>_vwscanf</code>, <code>_vfwscanf</code>, and <code>_vswscanf</code> are
  97. reentrant versions which take an additional first parameter which points
  98. to the reentrancy structure.
  99. </p>
  100. <br>
  101. <p><strong>Portability</strong><br>
  102. C99, POSIX-1.2008
  103. </p>
  104. <br>
  105. </body>
  106. </html>