1 <?xml version="1.0" encoding="UTF-8"?>
3 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4 * Copyright (C) 2008 - INRIA
7 * This file must be used under the terms of the CeCILL.
8 * This source file is licensed as described in the file COPYING, which
9 * you should have received as part of this distribution. The terms
10 * are also available at
11 * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
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="scanf">
16 <refname>scanf</refname>
17 <refpurpose>converts formatted input on standard input</refpurpose>
20 <title>Calling Sequence</title>
21 <synopsis>[v_1, ..., v_n]=scanf(format);</synopsis>
24 <title>Arguments</title>
29 <para>specifies the format conversion.</para>
33 <term>v_1, ..., v_n</term>
35 <para>converted results.</para>
41 <title>Description</title>
43 The <function>scanf</function> function get character data on standard input (<code>%io(1)</code>), interprets it according
44 to a <varname>format</varname>, and returns the converted results <varname>v_1</varname>, ..., <varname>v_n</varname>.
47 The <varname>format</varname> parameter contains conversion specifications
48 used to interpret the input.
51 The <varname>format</varname> parameter can contain
52 white-space characters (blanks, tabs, newline, or formfeed)
53 that, except in the following two cases, read the input up to the
54 next nonwhite-space character. Unless there is a match in the control
55 string, trailing white-space (including a newline character) is not
61 Any character except <literal>%</literal> (percent sign), which must match the next character of the input stream.
66 A conversion specification that directs the conversion of the next input field. See <link linkend="scanf_conversion">scanf_conversion</link> for details.
71 <refsection role="see also">
72 <title>See Also</title>
73 <simplelist type="inline">
75 <link linkend="read">read</link>
78 <link linkend="fscanf">fscanf</link>
81 <link linkend="scanf_conversion">scanf_conversion</link>