466
|
1 <refentry id="ungetc">
|
|
2 <refnamediv>
|
|
3 <refname>ungetc</refname>
|
|
4 <refpurpose>Placeholder</refpurpose>
|
|
5 </refnamediv>
|
|
6
|
|
7 <refsynopsisdiv>
|
|
8 <funcsynopsis>
|
468
|
9 <funcsynopsisinfo>
|
|
10 #include <stdio.h>
|
|
11 </funcsynopsisinfo>
|
466
|
12 <funcprototype>
|
|
13 <funcdef><function>ungetc</function></funcdef>
|
|
14 <paramdef>type <parameter>arg1</parameter></paramdef>
|
|
15 </funcprototype>
|
|
16 </funcsynopsis>
|
|
17
|
|
18 </refsynopsisdiv>
|
|
19
|
|
20 <refsect1><title>Description</title>
|
|
21 <para>
|
546
|
22 This function alters the state of the input file buffer such
|
|
23 that the next call of "getc()" returns "ch".
|
|
24 </para>
|
|
25 <para>
|
|
26 Only one character may be pushed back, and at least on
|
|
27 character must have been read from the file before a call to
|
|
28 ungetc.
|
|
29 </para>
|
|
30 <para>
|
|
31 <quote>Fseek()</quote> erases any puchback.
|
466
|
32 </para>
|
|
33 </refsect1>
|
546
|
34
|
|
35 <refsect1><title>Diagnostics</title>
|
|
36 <para>
|
|
37 Ungetc returns its character argument unless no puchback could
|
|
38 occur, in which case EOF is returned.
|
|
39 </para>
|
|
40 </refsect1>
|
|
41
|
|
42 <refsect1><title>See Also</title>
|
|
43 <para>
|
|
44 <link linkend="getc">getc()</link>,
|
|
45 <link linkend="fseek">fseek()</link>
|
|
46 </para>
|
|
47 </refsect1>
|
|
48
|
466
|
49 </refentry>
|