<?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="librarieslist">
    <refnamediv>
        <refname>librarieslist</refname>
        <refpurpose>gets the list of loaded Scilab libraries</refpurpose>
    </refnamediv>
    <refsynopsisdiv>
        <title>Syntax</title>
        <synopsis>s = librarieslist()</synopsis>
    </refsynopsisdiv>
    <refsection>
        <title>Arguments</title>
        <variablelist>
            <varlistentry>
                <term>s</term>
                <listitem>
                    <para>a string matrix</para>
                </listitem>
            </varlistentry>
        </variablelist>
    </refsection>
    <refsection>
        <title>Description</title>
        <para>
            return in <literal>s</literal> all libraries in the Scilab environment.
        </para>
        <para>libraries are scanned from the lastest loaded to the first one.</para>
        <para>Only macro libraries will be returned. For a module without any macros (ie, a module with only native code), it will not be displayed on the list.
        </para>
    </refsection>
    <refsection>
        <title>Examples</title>
        <programlisting role="example"><![CDATA[
librarieslist()
// to sort list
l =  gsort(librarieslist(),'r','i')
 ]]></programlisting>
    </refsection>
    <refsection role="see also">
        <title>See also</title>
        <simplelist type="inline">
            <member>
                <link linkend="libraryinfo">libraryinfo</link>
            </member>
            <member>
                <link linkend="gsort">gsort</link>
            </member>
        </simplelist>
    </refsection>
</refentry>
