You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

116 satır
4.9KB

  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>vfwprintf (The Red Hat newlib C Library)</title>
  7. <meta name="description" content="vfwprintf (The Red Hat newlib C Library)">
  8. <meta name="keywords" content="vfwprintf (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="vfwscanf.html#vfwscanf" rel="next" title="vfwscanf">
  17. <link href="vfscanf.html#vfscanf" rel="prev" title="vfscanf">
  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="vfwprintf"></a>
  48. <div class="header">
  49. <p>
  50. Next: <a href="vfwscanf.html#vfwscanf" accesskey="n" rel="next">vfwscanf</a>, Previous: <a href="vfscanf.html#vfscanf" accesskey="p" rel="prev">vfscanf</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="vfwprintf_002c-vwprintf_002c-vswprintf_002d_002d_002dwide-character-format-argument-list"></a>
  54. <h3 class="section">4.72 <code>vfwprintf</code>, <code>vwprintf</code>, <code>vswprintf</code>&mdash;wide character format argument list</h3>
  55. <a name="index-vfwprintf"></a>
  56. <a name="index-_005fvfwprintf_005fr"></a>
  57. <a name="index-vwprintf"></a>
  58. <a name="index-_005fvwprintf_005fr"></a>
  59. <a name="index-vswprintf"></a>
  60. <a name="index-_005fvswprintf_005fr"></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. #include &lt;wchar.h&gt;
  66. int vwprintf(const wchar_t *__restrict <var>fmt</var>, va_list <var>list</var>);
  67. int vfwprintf(FILE *__restrict <var>fp</var>,
  68. const wchar_t *__restrict <var>fmt</var>, va_list <var>list</var>);
  69. int vswprintf(wchar_t * __restrict <var>str</var>, size_t <var>size</var>,
  70. const wchar_t *__ restrict <var>fmt</var>, va_list <var>list</var>);
  71. int _vwprintf_r(struct _reent *<var>reent</var>, const wchar_t *<var>fmt</var>,
  72. va_list <var>list</var>);
  73. int _vfwprintf_r(struct _reent *<var>reent</var>, FILE *<var>fp</var>,
  74. const wchar_t *<var>fmt</var>, va_list <var>list</var>);
  75. int _vswprintf_r(struct _reent *<var>reent</var>, wchar_t *<var>str</var>,
  76. size_t <var>size</var>, const wchar_t *<var>fmt</var>, va_list <var>list</var>);
  77. </pre></div>
  78. <p><strong>Description</strong><br>
  79. <code>vwprintf</code>, <code>vfwprintf</code> and <code>vswprintf</code> are (respectively) variants
  80. of <code>wprintf</code>, <code>fwprintf</code> and <code>swprintf</code>. They differ only in allowing
  81. their caller to pass the variable argument list as a <code>va_list</code> object
  82. (initialized by <code>va_start</code>) rather than directly accepting a variable
  83. number of arguments. The caller is responsible for calling <code>va_end</code>.
  84. </p>
  85. <p><code>_vwprintf_r</code>, <code>_vfwprintf_r</code> and <code>_vswprintf_r</code> are reentrant
  86. versions of the above.
  87. </p>
  88. <br>
  89. <p><strong>Returns</strong><br>
  90. The return values are consistent with the corresponding functions.
  91. </p>
  92. <br>
  93. <p><strong>Portability</strong><br>
  94. POSIX-1.2008 with extensions; C99 (compliant except for POSIX extensions).
  95. </p>
  96. <p>Supporting OS subroutines required: <code>close</code>, <code>fstat</code>, <code>isatty</code>,
  97. <code>lseek</code>, <code>read</code>, <code>sbrk</code>, <code>write</code>.
  98. </p>
  99. <br>
  100. <p><strong>See Also</strong><br>
  101. <code>wprintf</code>, <code>fwprintf</code> and <code>swprintf</code>.
  102. </p>
  103. <br>
  104. </body>
  105. </html>