1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
4
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
<title>gnome-vfs-parse-ls</title>
6
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
7
<link rel="start" href="index.html" title="GnomeVFS - Filesystem Abstraction library">
8
<link rel="up" href="modules.html" title="Filesystem Modules">
9
<link rel="prev" href="gnome-vfs-20-gnome-vfs-transform.html" title="gnome-vfs-transform">
10
<link rel="next" href="gnome-vfs-20-gnome-vfs-standard-callbacks.html" title="gnome-vfs-standard-callbacks">
11
<meta name="generator" content="GTK-Doc V1.11 (XML mode)">
12
<link rel="stylesheet" href="style.css" type="text/css">
13
<link rel="chapter" href="about.html" title="Introduction to GnomeVFS">
14
<link rel="chapter" href="data-types.html" title="Basic Data Types">
15
<link rel="chapter" href="gnome-vfs-basic-file-ops.html" title="File Operations">
16
<link rel="chapter" href="gnome-vfs-directory-ops.html" title="Directory-Specific Operations">
17
<link rel="chapter" href="gnome-vfs-file-and-dirs-ops.html" title="Advanced File/Directory Operations">
18
<link rel="chapter" href="gnome-vfs-file-async-ops.html" title="Asynchronous Operations">
19
<link rel="chapter" href="volumes.html" title="Volumes and Drives Handling">
20
<link rel="chapter" href="networking.html" title="Networking">
21
<link rel="chapter" href="mime-registry.html" title="MIME Registry">
22
<link rel="chapter" href="modules.html" title="Filesystem Modules">
24
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
25
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
27
<td><a accesskey="p" href="gnome-vfs-20-gnome-vfs-transform.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
28
<td><a accesskey="u" href="modules.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
29
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
30
<th width="100%" align="center">GnomeVFS - Filesystem Abstraction library</th>
31
<td><a accesskey="n" href="gnome-vfs-20-gnome-vfs-standard-callbacks.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
33
<tr><td colspan="5" class="shortcuts">
34
<a href="#gnome-vfs-20-gnome-vfs-parse-ls.synopsis" class="shortcut">Top</a>
36
<a href="#gnome-vfs-20-gnome-vfs-parse-ls.description" class="shortcut">Description</a>
39
<div class="refentry" lang="en">
40
<a name="gnome-vfs-20-gnome-vfs-parse-ls"></a><div class="titlepage"></div>
41
<div class="refnamediv"><table width="100%"><tr>
43
<h2><span class="refentrytitle"><a name="gnome-vfs-20-gnome-vfs-parse-ls.top_of_page"></a>gnome-vfs-parse-ls</span></h2>
44
<p>gnome-vfs-parse-ls — convenience functions for modules which want to parse a ls-like directory listing</p>
46
<td valign="top" align="right"></td>
48
<div class="refsynopsisdiv">
49
<a name="gnome-vfs-20-gnome-vfs-parse-ls.synopsis"></a><h2>Synopsis</h2>
50
<pre class="synopsis">
51
int <a class="link" href="gnome-vfs-20-gnome-vfs-parse-ls.html#gnome-vfs-parse-ls-lga" title="gnome_vfs_parse_ls_lga ()">gnome_vfs_parse_ls_lga</a> (const char *p,
57
<div class="refsect1" lang="en">
58
<a name="gnome-vfs-20-gnome-vfs-parse-ls.description"></a><h2>Description</h2>
62
<div class="refsect1" lang="en">
63
<a name="gnome-vfs-20-gnome-vfs-parse-ls.details"></a><h2>Details</h2>
64
<div class="refsect2" lang="en">
65
<a name="gnome-vfs-parse-ls-lga"></a><h3>gnome_vfs_parse_ls_lga ()</h3>
66
<pre class="programlisting">int gnome_vfs_parse_ls_lga (const char *p,
69
char **linkname);</pre>
71
Parses the string <em class="parameter"><code>p</code></em> which is in the form same as the 'ls -al' output and fills
72
in the details in the struct <em class="parameter"><code>s</code></em>, <em class="parameter"><code>filename</code></em> and <em class="parameter"><code>linkname</code></em>.</p>
75
<div class="variablelist"><table border="0">
76
<col align="left" valign="top">
79
<td><p><span class="term"><em class="parameter"><code>p</code></em> :</span></p></td>
80
<td> string containing the data in the form same as 'ls -al'.
84
<td><p><span class="term"><em class="parameter"><code>s</code></em> :</span></p></td>
85
<td> pointer to stat structure.
89
<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
90
<td> filename, will be filled here.
94
<td><p><span class="term"><em class="parameter"><code>linkname</code></em> :</span></p></td>
95
<td> linkname, will be filled here.
99
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
100
<td> 0 if cannot parse <em class="parameter"><code>p</code></em>, 1 if successful.
110
Generated by GTK-Doc V1.11</div>