14
14
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:lang="en" xml:id="fprintf">
16
<refname>fprintf</refname>
18
Emulator of C language fprintf function. <emphasis>This function
24
<title>Calling Sequence</title>
25
<synopsis>fprintf(file,format,value_1,..,value_n)</synopsis>
28
<title>Arguments</title>
33
<para>a Scilab string. It specifies a character string combining literal characters with conversion specifications.</para>
40
specifies the data to be converted according to the <varname>format</varname> parameter.
48
a Scilab string specifying a file name or a logical unit number (see<link linkend="file">file</link>)
51
Note that if <varname>file</varname>=0, the message will be display on standard error stream (stderr).
58
<title>Description</title>
61
This function is obsolete, use preferabily the <link
16
<refname>fprintf</refname>
18
Emulator of C language fprintf function. <emphasis role="bold">This function is obsolete.</emphasis>
22
<title>Calling Sequence</title>
23
<synopsis>fprintf(file, format, value_1, ..., value_n)</synopsis>
26
<title>Arguments</title>
31
<para>a Scilab string. It specifies a character string combining literal characters with conversion specifications.</para>
38
specifies the data to be converted according to the <varname>format</varname> parameter.
46
a Scilab string specifying a file name or a logical unit number (see <link linkend="file">file</link>)
49
Note that if <varname>file</varname>=0, the message will be display on standard error stream (stderr).
56
<title>Description</title>
59
This function is obsolete, use preferabily the <link
62
60
linkend="mfprintf">mfprintf</link> function which is much more
63
compatible with the C <function>fprintf</function> functionalities.
67
The <function>fprintf</function> function converts, formats, and writes
68
its <varname>value</varname> parameters, under control of the <varname>format</varname>
69
parameter, to the file specified by its <varname>file</varname> parameter.
72
The <varname>format</varname> parameter is a character string that contains two
77
<term>Literal characters</term>
79
<para>which are copied to the output stream.</para>
83
<term>Conversion specifications</term>
86
each of which causes zero or more items to be fetched from the <varname>value</varname> parameter list. See <link linkend="printf_conversion">printf_conversion</link> for details.
92
If any <varname>value</varname>s remain after the entire <varname>format</varname> has been
93
processed, they are ignored.
97
<title>Examples</title>
98
<programlisting role="example"><![CDATA[
61
compatible with the C <function>fprintf</function> functionalities.
65
The <function>fprintf</function> function converts, formats, and writes
66
its <varname>value</varname> parameters, under control of the <varname>format</varname>
67
parameter, to the file specified by its <varname>file</varname> parameter.
70
The <varname>format</varname> parameter is a character string that contains two
75
<term>Literal characters</term>
77
<para>which are copied to the output stream.</para>
81
<term>Conversion specifications</term>
84
each of which causes zero or more items to be fetched from the <varname>value</varname> parameter list. See <link linkend="printf_conversion">printf_conversion</link> for details.
90
If any <varname>value</varname>s remain after the entire <varname>format</varname> has been
91
processed, they are ignored.
95
<title>Examples</title>
96
<programlisting role="example"><![CDATA[
99
97
u=file('open',fullfile(TMPDIR,'results'),'unknown') //open the result file
106
104
fprintf(0,'My error which is going to be displayed on the stderr')
107
105
]]></programlisting>
109
<refsection role="see also">
110
<title>See Also</title>
111
<simplelist type="inline">
113
<link linkend="mfprintf">mfprintf</link>
116
<link linkend="string">string</link>
119
<link linkend="print">print</link>
122
<link linkend="write">write</link>
125
<link linkend="format">format</link>
128
<link linkend="disp">disp</link>
131
<link linkend="file">file</link>
134
<link linkend="mprintf">mprintf</link>
137
<link linkend="msprintf">msprintf</link>
140
<link linkend="printf_conversion">printf_conversion</link>
107
<refsection role="see also">
108
<title>See Also</title>
109
<simplelist type="inline">
111
<link linkend="mfprintf">mfprintf</link>
114
<link linkend="string">string</link>
117
<link linkend="print">print</link>
120
<link linkend="write">write</link>
123
<link linkend="format">format</link>
126
<link linkend="disp">disp</link>
129
<link linkend="file">file</link>
132
<link linkend="mprintf">mprintf</link>
135
<link linkend="msprintf">msprintf</link>
138
<link linkend="printf_conversion">printf_conversion</link>