| GnomeVFS - Filesystem Abstraction library | ||||
|---|---|---|---|---|
| Top | Description | ||||
gnome-vfs-parse-lsgnome-vfs-parse-ls — convenience functions for modules which want to parse a ls-like directory listing |
int gnome_vfs_parse_ls_lga (const char *p, struct stat *s, char **filename, char **linkname);
int gnome_vfs_parse_ls_lga (const char *p, struct stat *s, char **filename, char **linkname);
Parses the string p which is in the form same as the 'ls -al' output and fills
in the details in the struct s, filename and linkname.
|
string containing the data in the form same as 'ls -al'. |
|
pointer to stat structure. |
|
filename, will be filled here. |
|
linkname, will be filled here. |
Returns : |
0 if cannot parse p, 1 if successful.
|