annotate docs/ccguide/scanf.refentry @ 574:c49be44efba2

All function prototypes are added.
author roug
date Fri, 01 Nov 2002 10:02:34 +0000
parents fcb97f0ba24b
children 96ad5be1860b
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="scanf">
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
2 <refnamediv>
574
c49be44efba2 All function prototypes are added.
roug
parents: 552
diff changeset
3 <refname>Scanf</refname>
c49be44efba2 All function prototypes are added.
roug
parents: 552
diff changeset
4 <refname>Fscanf</refname>
c49be44efba2 All function prototypes are added.
roug
parents: 552
diff changeset
5 <refname>Sscanf</refname>
c49be44efba2 All function prototypes are added.
roug
parents: 552
diff changeset
6 <refpurpose>input string interpretation</refpurpose>
466
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
7 </refnamediv>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
8
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
9 <refsynopsisdiv>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
10 <funcsynopsis>
468
60b821f18853 A little here and there.
roug
parents: 466
diff changeset
11 <funcsynopsisinfo>
60b821f18853 A little here and there.
roug
parents: 466
diff changeset
12 #include &lt;stdio.h&gt;
60b821f18853 A little here and there.
roug
parents: 466
diff changeset
13 </funcsynopsisinfo>
466
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
14 <funcprototype>
574
c49be44efba2 All function prototypes are added.
roug
parents: 552
diff changeset
15 <funcdef><function>fscanf</function></funcdef>
c49be44efba2 All function prototypes are added.
roug
parents: 552
diff changeset
16 <paramdef>FILE *<parameter>fp</parameter></paramdef>
c49be44efba2 All function prototypes are added.
roug
parents: 552
diff changeset
17 <paramdef>char *<parameter>control</parameter></paramdef>
c49be44efba2 All function prototypes are added.
roug
parents: 552
diff changeset
18 <paramdef>char *<parameter>pointer...</parameter></paramdef>
c49be44efba2 All function prototypes are added.
roug
parents: 552
diff changeset
19 </funcprototype>
c49be44efba2 All function prototypes are added.
roug
parents: 552
diff changeset
20
c49be44efba2 All function prototypes are added.
roug
parents: 552
diff changeset
21 <funcprototype>
466
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
22 <funcdef><function>scanf</function></funcdef>
574
c49be44efba2 All function prototypes are added.
roug
parents: 552
diff changeset
23 <paramdef>char *<parameter>control</parameter></paramdef>
c49be44efba2 All function prototypes are added.
roug
parents: 552
diff changeset
24 <paramdef>char *<parameter>pointer...</parameter></paramdef>
466
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
25 </funcprototype>
574
c49be44efba2 All function prototypes are added.
roug
parents: 552
diff changeset
26
c49be44efba2 All function prototypes are added.
roug
parents: 552
diff changeset
27 <funcprototype>
c49be44efba2 All function prototypes are added.
roug
parents: 552
diff changeset
28 <funcdef><function>sscanf</function></funcdef>
c49be44efba2 All function prototypes are added.
roug
parents: 552
diff changeset
29 <paramdef>char *<parameter>string</parameter></paramdef>
c49be44efba2 All function prototypes are added.
roug
parents: 552
diff changeset
30 <paramdef>char *<parameter>control</parameter></paramdef>
c49be44efba2 All function prototypes are added.
roug
parents: 552
diff changeset
31 <paramdef>char *<parameter>pointer...</parameter></paramdef>
c49be44efba2 All function prototypes are added.
roug
parents: 552
diff changeset
32 </funcprototype>
c49be44efba2 All function prototypes are added.
roug
parents: 552
diff changeset
33
466
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
34 </funcsynopsis>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
35
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
36 </refsynopsisdiv>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
37
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
38 <refsect1><title>Description</title>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
39 <para>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
40 Placeholder
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
41 </para>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
42 </refsect1>
542
73319ee6a57e All "See Also" implemented
roug
parents: 468
diff changeset
43
552
fcb97f0ba24b All diagnostics added.
roug
parents: 542
diff changeset
44 <refsect1><title>Diagnostics</title>
fcb97f0ba24b All diagnostics added.
roug
parents: 542
diff changeset
45 <para>
fcb97f0ba24b All diagnostics added.
roug
parents: 542
diff changeset
46 These functions return EOF on end of input or error and a count
fcb97f0ba24b All diagnostics added.
roug
parents: 542
diff changeset
47 which is shorter than expected for unexpected or unmatched
fcb97f0ba24b All diagnostics added.
roug
parents: 542
diff changeset
48 items.
fcb97f0ba24b All diagnostics added.
roug
parents: 542
diff changeset
49 </para>
fcb97f0ba24b All diagnostics added.
roug
parents: 542
diff changeset
50 </refsect1>
fcb97f0ba24b All diagnostics added.
roug
parents: 542
diff changeset
51
542
73319ee6a57e All "See Also" implemented
roug
parents: 468
diff changeset
52 <refsect1><title>See Also</title>
73319ee6a57e All "See Also" implemented
roug
parents: 468
diff changeset
53 <para>
73319ee6a57e All "See Also" implemented
roug
parents: 468
diff changeset
54 <link linkend="atof">atoi(), atof()</link>,
73319ee6a57e All "See Also" implemented
roug
parents: 468
diff changeset
55 <link linkend="getc">getc()</link>,
73319ee6a57e All "See Also" implemented
roug
parents: 468
diff changeset
56 <link linkend="printf">printf()</link>
73319ee6a57e All "See Also" implemented
roug
parents: 468
diff changeset
57 Kernighan and Ritchie pp 147-150
73319ee6a57e All "See Also" implemented
roug
parents: 468
diff changeset
58 </para>
73319ee6a57e All "See Also" implemented
roug
parents: 468
diff changeset
59 </refsect1>
73319ee6a57e All "See Also" implemented
roug
parents: 468
diff changeset
60
466
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
61 </refentry>