• 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>getwchar - 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="getw.html#getw" title="getw">
10<link rel="next" href="mktemp.html#mktemp" title="mktemp">
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="getwchar"></a>
29<p>
30Next:&nbsp;<a rel="next" accesskey="n" href="mktemp.html#mktemp">mktemp</a>,
31Previous:&nbsp;<a rel="previous" accesskey="p" href="getw.html#getw">getw</a>,
32Up:&nbsp;<a rel="up" accesskey="u" href="Stdio.html#Stdio">Stdio</a>
33<hr>
34</div>
35
36<h3 class="section">4.40 <code>getwchar</code>&mdash;read a wide character from standard input</h3>
37
38<p><a name="index-getwchar-228"></a><a name="index-g_t_005fgetwchar_005fr-229"></a><strong>Synopsis</strong>
39<pre class="example">     #include &lt;wchar.h&gt;
40     wint_t getwchar(void);
41     
42     wint_t _getwchar_r(struct _reent *<var>reent</var>);
43     
44</pre>
45   <p><strong>Description</strong><br>
46<code>getwchar</code> function or macro is the wide character equivalent of
47the <code>getchar</code> function.  You can use <code>getwchar</code> to get the next
48wide character from the standard input stream.  As a side effect,
49<code>getwchar</code> advances the standard input's current position indicator.
50
51   <p>The alternate function <code>_getwchar_r</code> is a reentrant version.  The
52extra argument <var>reent</var> is a pointer to a reentrancy structure.
53
54   <p><br>
55<strong>Returns</strong><br>
56The next wide character cast to <code>wint_t</code>, unless there is no more
57data, or the host system reports a read error; in either of these
58situations, <code>getwchar</code> returns <code>WEOF</code>.
59
60   <p>You can distinguish the two situations that cause an <code>WEOF</code> result by
61using `<code>ferror(stdin)</code>' and `<code>feof(stdin)</code>'.
62
63   <p><br>
64<strong>Portability</strong><br>
65C99
66
67   <p><br>
68
69   </body></html>
70
71