<refentry id="gnome-vfs-20-gnome-vfs-parse-ls">
<refmeta>
<refentrytitle id="top_of_page">gnome-vfs-parse-ls</refentrytitle>
<manvolnum>3</manvolnum>
<refmiscinfo>GNOME-VFS-2.0 Library</refmiscinfo>
</refmeta>

<refnamediv>
<refname>gnome-vfs-parse-ls</refname>
<refpurpose>convenience functions for modules which want to parse a ls-like directory listing</refpurpose>
<!--[<xref linkend="desc" endterm="desc.title"/>]-->
</refnamediv>

<refsynopsisdiv id="synopsis">
<title id="synopsis.title">Synopsis</title>

<synopsis>



<link linkend="int">int</link>         <link linkend="gnome-vfs-parse-ls-lga">gnome_vfs_parse_ls_lga</link>          (const <link linkend="char">char</link> *p,
                                             struct <link linkend="stat">stat</link> *s,
                                             <link linkend="char">char</link> **filename,
                                             <link linkend="char">char</link> **linkname);
</synopsis>
</refsynopsisdiv>









<refsect1 id="desc">
<title id="desc.title">Description</title>
<para>

</para>
</refsect1>

<refsect1 id="details">
<title id="details.title">Details</title>
<refsect2>
<title><anchor id="gnome-vfs-parse-ls-lga" role="function"/>gnome_vfs_parse_ls_lga ()</title>
<indexterm><primary>gnome_vfs_parse_ls_lga</primary></indexterm><programlisting><link linkend="int">int</link>         gnome_vfs_parse_ls_lga          (const <link linkend="char">char</link> *p,
                                             struct <link linkend="stat">stat</link> *s,
                                             <link linkend="char">char</link> **filename,
                                             <link linkend="char">char</link> **linkname);</programlisting>
<para>
Parses the string <parameter>p</parameter> which is in the form same as the 'ls -al' output and fills
in the details in the struct <parameter>s</parameter>, <parameter>filename</parameter> and <parameter>linkname</parameter>.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>p</parameter>&nbsp;:</term>
<listitem><simpara> string containing the data in the form same as 'ls -al'.
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>s</parameter>&nbsp;:</term>
<listitem><simpara> pointer to stat structure.
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>filename</parameter>&nbsp;:</term>
<listitem><simpara> filename, will be filled here.
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>linkname</parameter>&nbsp;:</term>
<listitem><simpara> linkname, will be filled here.
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> 0 if cannot parse <parameter>p</parameter>, 1 if successful.
</simpara></listitem></varlistentry>
</variablelist></refsect2>

</refsect1>




</refentry>
