466
|
1 <refentry id="scanf">
|
|
2 <refnamediv>
|
574
|
3 <refname>Scanf</refname>
|
|
4 <refname>Fscanf</refname>
|
|
5 <refname>Sscanf</refname>
|
|
6 <refpurpose>input string interpretation</refpurpose>
|
466
|
7 </refnamediv>
|
|
8
|
|
9 <refsynopsisdiv>
|
|
10 <funcsynopsis>
|
468
|
11 <funcsynopsisinfo>
|
|
12 #include <stdio.h>
|
|
13 </funcsynopsisinfo>
|
466
|
14 <funcprototype>
|
574
|
15 <funcdef><function>fscanf</function></funcdef>
|
|
16 <paramdef>FILE *<parameter>fp</parameter></paramdef>
|
|
17 <paramdef>char *<parameter>control</parameter></paramdef>
|
|
18 <paramdef>char *<parameter>pointer...</parameter></paramdef>
|
|
19 </funcprototype>
|
|
20
|
|
21 <funcprototype>
|
466
|
22 <funcdef><function>scanf</function></funcdef>
|
574
|
23 <paramdef>char *<parameter>control</parameter></paramdef>
|
|
24 <paramdef>char *<parameter>pointer...</parameter></paramdef>
|
466
|
25 </funcprototype>
|
574
|
26
|
|
27 <funcprototype>
|
|
28 <funcdef><function>sscanf</function></funcdef>
|
|
29 <paramdef>char *<parameter>string</parameter></paramdef>
|
|
30 <paramdef>char *<parameter>control</parameter></paramdef>
|
|
31 <paramdef>char *<parameter>pointer...</parameter></paramdef>
|
|
32 </funcprototype>
|
|
33
|
466
|
34 </funcsynopsis>
|
|
35
|
|
36 </refsynopsisdiv>
|
|
37
|
|
38 <refsect1><title>Description</title>
|
|
39 <para>
|
|
40 Placeholder
|
|
41 </para>
|
|
42 </refsect1>
|
542
|
43
|
552
|
44 <refsect1><title>Diagnostics</title>
|
|
45 <para>
|
|
46 These functions return EOF on end of input or error and a count
|
|
47 which is shorter than expected for unexpected or unmatched
|
|
48 items.
|
|
49 </para>
|
|
50 </refsect1>
|
|
51
|
542
|
52 <refsect1><title>See Also</title>
|
|
53 <para>
|
|
54 <link linkend="atof">atoi(), atof()</link>,
|
|
55 <link linkend="getc">getc()</link>,
|
|
56 <link linkend="printf">printf()</link>
|
|
57 Kernighan and Ritchie pp 147-150
|
|
58 </para>
|
|
59 </refsect1>
|
|
60
|
466
|
61 </refentry>
|