annotate docs/ccguide/ungetc.refentry @ 573:d9ab3688bb71

All function prototypes are added.
author roug
date Fri, 01 Nov 2002 10:02:34 +0000
parents 8b99a9882961
children dc9fb26efbad
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
466
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
1 <refentry id="ungetc">
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
2 <refnamediv>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
3 <refname>ungetc</refname>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
4 <refpurpose>Placeholder</refpurpose>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
5 </refnamediv>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
6
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
7 <refsynopsisdiv>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
8 <funcsynopsis>
468
60b821f18853 A little here and there.
roug
parents: 466
diff changeset
9 <funcsynopsisinfo>
60b821f18853 A little here and there.
roug
parents: 466
diff changeset
10 #include &lt;stdio.h&gt;
60b821f18853 A little here and there.
roug
parents: 466
diff changeset
11 </funcsynopsisinfo>
466
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
12 <funcprototype>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
13 <funcdef><function>ungetc</function></funcdef>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
14 <paramdef>type <parameter>arg1</parameter></paramdef>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
15 </funcprototype>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
16 </funcsynopsis>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
17
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
18 </refsynopsisdiv>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
19
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
20 <refsect1><title>Description</title>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
21 <para>
546
8b99a9882961 All "See Also" implemented
roug
parents: 468
diff changeset
22 This function alters the state of the input file buffer such
8b99a9882961 All "See Also" implemented
roug
parents: 468
diff changeset
23 that the next call of "getc()" returns "ch".
8b99a9882961 All "See Also" implemented
roug
parents: 468
diff changeset
24 </para>
8b99a9882961 All "See Also" implemented
roug
parents: 468
diff changeset
25 <para>
8b99a9882961 All "See Also" implemented
roug
parents: 468
diff changeset
26 Only one character may be pushed back, and at least on
8b99a9882961 All "See Also" implemented
roug
parents: 468
diff changeset
27 character must have been read from the file before a call to
8b99a9882961 All "See Also" implemented
roug
parents: 468
diff changeset
28 ungetc.
8b99a9882961 All "See Also" implemented
roug
parents: 468
diff changeset
29 </para>
8b99a9882961 All "See Also" implemented
roug
parents: 468
diff changeset
30 <para>
8b99a9882961 All "See Also" implemented
roug
parents: 468
diff changeset
31 <quote>Fseek()</quote> erases any puchback.
466
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
32 </para>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
33 </refsect1>
546
8b99a9882961 All "See Also" implemented
roug
parents: 468
diff changeset
34
8b99a9882961 All "See Also" implemented
roug
parents: 468
diff changeset
35 <refsect1><title>Diagnostics</title>
8b99a9882961 All "See Also" implemented
roug
parents: 468
diff changeset
36 <para>
8b99a9882961 All "See Also" implemented
roug
parents: 468
diff changeset
37 Ungetc returns its character argument unless no puchback could
8b99a9882961 All "See Also" implemented
roug
parents: 468
diff changeset
38 occur, in which case EOF is returned.
8b99a9882961 All "See Also" implemented
roug
parents: 468
diff changeset
39 </para>
8b99a9882961 All "See Also" implemented
roug
parents: 468
diff changeset
40 </refsect1>
8b99a9882961 All "See Also" implemented
roug
parents: 468
diff changeset
41
8b99a9882961 All "See Also" implemented
roug
parents: 468
diff changeset
42 <refsect1><title>See Also</title>
8b99a9882961 All "See Also" implemented
roug
parents: 468
diff changeset
43 <para>
8b99a9882961 All "See Also" implemented
roug
parents: 468
diff changeset
44 <link linkend="getc">getc()</link>,
8b99a9882961 All "See Also" implemented
roug
parents: 468
diff changeset
45 <link linkend="fseek">fseek()</link>
8b99a9882961 All "See Also" implemented
roug
parents: 468
diff changeset
46 </para>
8b99a9882961 All "See Also" implemented
roug
parents: 468
diff changeset
47 </refsect1>
8b99a9882961 All "See Also" implemented
roug
parents: 468
diff changeset
48
466
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
49 </refentry>