reference/strings/functions/fprintf.xml
f134250210702ab6280ab303b846679177d39f14
...
...
@@ -1,6 +1,6 @@
1
1
<?xml version="1.0" encoding="utf-8"?>
2
2
<!-- $Revision$ -->
3
-
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.fprintf">
3
+
<refentry xml:id="function.fprintf" xmlns="http://docbook.org/ns/docbook">
4
4
<refnamediv>
5
5
<refname>fprintf</refname>
6
6
<refpurpose>Write a formatted string to a stream</refpurpose>
...
...
@@ -10,14 +10,13 @@
10
10
&reftitle.description;
11
11
<methodsynopsis>
12
12
<type>int</type><methodname>fprintf</methodname>
13
-
<methodparam><type>resource</type><parameter>handle</parameter></methodparam>
13
+
<methodparam><type>resource</type><parameter>stream</parameter></methodparam>
14
14
<methodparam><type>string</type><parameter>format</parameter></methodparam>
15
-
<methodparam choice="opt"><type>mixed</type><parameter>args</parameter></methodparam>
16
-
<methodparam choice="opt"><type>mixed</type><parameter>...</parameter></methodparam>
15
+
<methodparam rep="repeat"><type>mixed</type><parameter>values</parameter></methodparam>
17
16
</methodsynopsis>
18
17
<para>
19
18
Write a string produced according to <parameter>format</parameter> to the
20
-
stream resource specified by <parameter>handle</parameter>.
19
+
stream resource specified by <parameter>stream</parameter>.
21
20
</para>
22
21
</refsect1>
23
22

...
...
@@ -26,29 +25,14 @@
26
25
<para>
27
26
<variablelist>
28
27
<varlistentry>
29
-
<term><parameter>handle</parameter></term>
28
+
<term><parameter>stream</parameter></term>
30
29
<listitem>
31
30
&fs.file.pointer;
32
31
</listitem>
33
32
</varlistentry>
33
+
&strings.parameter.format;
34
34
<varlistentry>
35
-
<term><parameter>format</parameter></term>
36
-
<listitem>
37
-
<para>
38
-
See <function>sprintf</function> for a description of
39
-
<parameter>format</parameter>.
40
-
</para>
41
-
</listitem>
42
-
</varlistentry>
43
-
<varlistentry>
44
-
<term><parameter>args</parameter></term>
45
-
<listitem>
46
-
<para>
47
-
</para>
48
-
</listitem>
49
-
</varlistentry>
50
-
<varlistentry>
51
-
<term><parameter>...</parameter></term>
35
+
<term><parameter>values</parameter></term>
52
36
<listitem>
53
37
<para>
54
38
</para>
...
...
@@ -64,6 +48,15 @@
64
48
Returns the length of the string written.
65
49
</para>
66
50
</refsect1>
51
+
<refsect1 role="errors">
52
+
&reftitle.errors;
53
+
&strings.errors.sprintf;
54
+
</refsect1>
55
+

56
+
<refsect1 role="changelog">
57
+
&reftitle.changelog;
58
+
&strings.changelog.sprintf;
59
+
</refsect1>
67
60

68
61
<refsect1 role="examples">
69
62
&reftitle.examples;
...
...
@@ -114,16 +107,18 @@ echo "wrote $len bytes to currency.txt";
114
107
<simplelist>
115
108
<member><function>printf</function></member>
116
109
<member><function>sprintf</function></member>
110
+
<member><function>vprintf</function></member>
111
+
<member><function>vsprintf</function></member>
112
+
<member><function>vfprintf</function></member>
117
113
<member><function>sscanf</function></member>
118
114
<member><function>fscanf</function></member>
119
-
<member><function>vsprintf</function></member>
120
115
<member><function>number_format</function></member>
116
+
<member><function>date</function></member>
121
117
</simplelist>
122
118
</para>
123
119
</refsect1>
124
120

125
121
</refentry>
126
-

127
122
<!-- Keep this comment at the end of the file
128
123
Local variables:
129
124
mode: sgml
130
125