<?xml version="1.0" encoding="UTF-8"?>
<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" xmlns:scilab="http://www.scilab.org"
          xml:lang="en" xml:id="fromc">
    <refnamediv>
        <refname>fromc</refname>
        <refpurpose>Checks if current Scilab is called from an external C program (by StartScilab).</refpurpose>
    </refnamediv>
    <refsynopsisdiv>
        <title>Syntax</title>
        <synopsis>r=fromc()</synopsis>
    </refsynopsisdiv>
    <refsection>
        <title>Arguments</title>
        <variablelist>
            <varlistentry>
                <term>r</term>
                <listitem>
                    <para>a boolean</para>
                </listitem>
            </varlistentry>
        </variablelist>
    </refsection>
    <refsection>
        <title>Description</title>
        <para>
            Returns <literal>%t</literal> if the current Scilab session is opened from an external
            C program, or <literal>%f</literal> if not.
        </para>
    </refsection>

    <refsection>
        <title>Example</title>
        <programlisting role="example"><![CDATA[
fromc()
 ]]></programlisting>
    </refsection>
    <refsection role="see also">
        <title>See also</title>
        <simplelist type="inline">
            <member>
                <link linkend="call_scilab">Call_Scilab</link>
            </member>
            <member>
                <link linkend="fromjava">fromjava</link>
            </member>
            <member>
                <link linkend="istssession">istssession</link>
            </member>
            <member>
                <link linkend="getscilabmode">getscilabmode</link>
            </member>
        </simplelist>
    </refsection>
</refentry>
