466
|
1 <refentry id="fread">
|
|
2 <refnamediv>
|
570
|
3 <refname>Fread</refname>
|
|
4 <refname>Fwrite</refname>
|
|
5 <refpurpose>read/write binary data</refpurpose>
|
466
|
6 </refnamediv>
|
|
7
|
|
8 <refsynopsisdiv>
|
|
9 <funcsynopsis>
|
468
|
10 <funcsynopsisinfo>
|
|
11 #include <stdio.h>
|
|
12 </funcsynopsisinfo>
|
466
|
13 <funcprototype>
|
|
14 <funcdef><function>fread</function></funcdef>
|
570
|
15 <paramdef>char *<parameter>ptr</parameter></paramdef>
|
|
16 <paramdef>int <parameter>size</parameter></paramdef>
|
|
17 <paramdef>int <parameter>number</parameter></paramdef>
|
|
18 <paramdef>FILE *<parameter>fp</parameter></paramdef>
|
|
19 </funcprototype>
|
|
20
|
|
21 <funcprototype>
|
|
22 <funcdef><function>fwrite</function></funcdef>
|
|
23 <paramdef>char *<parameter>ptr</parameter></paramdef>
|
|
24 <paramdef>int <parameter>size</parameter></paramdef>
|
|
25 <paramdef>int <parameter>number</parameter></paramdef>
|
|
26 <paramdef>FILE *<parameter>fp</parameter></paramdef>
|
466
|
27 </funcprototype>
|
|
28 </funcsynopsis>
|
|
29
|
|
30 </refsynopsisdiv>
|
|
31
|
|
32 <refsect1><title>Description</title>
|
|
33 <para>
|
|
34 Placeholder
|
|
35 </para>
|
|
36 </refsect1>
|
552
|
37 <refsect1><title>Diagnostics</title>
|
|
38 <para>
|
|
39 Both functions return 0(NULL) at the end of file or error.
|
|
40 </para>
|
|
41 </refsect1>
|
542
|
42
|
|
43 <refsect1><title>See Also</title>
|
|
44 <para>
|
|
45 System calls
|
|
46 <link linkend="read">read()</link>,
|
|
47 <link linkend="write">write()</link>.
|
|
48 <link linkend="fopen">Fopen()</link>,
|
|
49 <link linkend="getc">getc()</link>,
|
|
50 <link linkend="putc">putc()</link>,
|
|
51 <link linkend="printf">printf()</link>
|
|
52 </para>
|
|
53 </refsect1>
|
|
54
|
466
|
55 </refentry>
|